Làm thế nào để tải và cài phpmyadmin vào Windows 7 khi mà bạn đang sử dụng Apache server. Cách thức:
- Tải phpmyadmin từ trang chủ.
- Bung nén và copy vào thư mục htdocs trên Apache server
- Vào web browser mở trang localhost/phpmyadmin
- Nếu lỗi thì sửa thêm thông tin trong file php.ini, lỗi php_mbstring: phải enable nó lên và thay đổi thư mục ext trong file đó. VD: http://stackoverflow.com/questions/30047169/phpmyadmin-error-the-mbstring-extension-is-missing-please-check-your-php-confi
- Demo: https://www.youtube.com/watch?v=Bb3z4oKkPCs
Should learn Ajax and jQuery
Có một ví dụ hay ở đây. http://www.sanwebe.com/2012/04/ajax-add-delete-sql-records-jquery-php. Demo hướng dẫn cách tạo và xóa các records trong MySQL sử dụng ajax và php.
I'm trying to find out how to get the following constraint information from a table in MySQL 5.0:
- primary key
- foreign keys and table references
- unique columns
show columns from table_name;
show fields from table_name;
show create table table_name;
Notes: Cuoi cau lenh sql, co the them \G hoac \g thay cho dau ; Thu xem se thay hay day