Click here to Skip to main content
15,936,602 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm getting the following error when i try to submit the response

Fatal error: Uncaught mysqli_sql_exception: Table 'product.product' doesn't exist in C:\xampp\htdocs\Design SA1\login.php:12 Stack trace: #0 C:\xampp\htdocs\Design SA1\login.php(12): mysqli_query(Object(mysqli), 'INSERT INTO pro...') #1 {main} thrown in C:\xampp\htdocs\Design SA1\login.php on line 12

What I have tried:

 mysqli_query($mysqli,"INSERT INTO product(ProductName, CompanyName, Price, ImgLink)
VALUES ('$ProductName', '$CompanyName', '$Price', '$ImgLink')");

1 solution

Always read the error messages - they are there to help you!
In this case int's pretty explicit:
Table 'product.product' doesn't exist in C:\xampp\htdocs\Design SA1\login.php
It's telling you that the table product doesn't exist in your selected DB ...

We can't fix that for you ...
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900