Great quick video that showed EXACTLY what I needed. Thank you. And I also see you helping people with their issues in the comment section, always great to see this sort of stuff.
In which folder is the database stored? Is it in the same folder where you store your php files, or do you create a subfolder like when you do to put CSS, JS or images for example, or is it somewhere else?
Fatal error: Uncaught Error: Class "mysqli" not found in C:\Users\User ewphp\connect.php:5 Stack trace: #0 {main} thrown in C:\Users\User ewphp\connect.php on line 5 Why this problem is arising???
please Warning: mysqli::__construct(): (HY000/1045): Access denied for user 'abdessamad'@'localhost' (using password: NO) help me , i cant access to my user
hello the first methods was working fin thank you but the 2ed was not can see the where the problem plz Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) in C:\xampp\htdocs\conntest\testconn.php:9 Stack trace: #0 C:\xampp\htdocs\conntest\testconn.php(9): PDO->__construct('mysql:host=loca...', 'root', '') #1 {main} thrown in C:\xampp\htdocs\conntest\testconn.php on line 9
Useful information, but...why is it that EVERY tutorial only ever uses 'localhost' and NEVER explains how to connect to a remote database (like gearhost). How many apps today uses a local database? Not criticizing, just expressing frustration. Cannot find this info anywhere.
a) Write a PHP script that connects to a MySQL database and creates a table named "products" with the following constraints: Primary key constraint on the "product_id" column. Unique constraint on the "product_code" column. Check constraint to ensure that the "price" column is greater than zero. b) Apply Insertion, Updating and Deletion of rows in MYSQL tables. Is question kis ko aata hai kya