Joel254 Posted June 12, 2015 Share Posted June 12, 2015 viewDetails php reads data from products table of MySQL database. Why am I not able to insert the requested data into cart table using cart.php? this question relates to php and MySQL shopping cart viewDetails.php cart.php Quote Link to comment Share on other sites More sharing options...
Barand Posted June 12, 2015 Share Posted June 12, 2015 (edited) to see the error message you need die('Error: ' . mysqli_error($link)); or die('Error: ' . $link->error); Turning php error reporting on would alert you to that error Edited June 12, 2015 by Barand Quote Link to comment Share on other sites More sharing options...
Joel254 Posted June 12, 2015 Author Share Posted June 12, 2015 I tried catching the error as you said but nothing showing. If I echo the SQL statement, it shows I am not getting anything from viewDetails.php apart from quantity. I think the issue is do to with I have a quantity field on viewDetails.php that can be incremented after pulling data from products table, also the add button that when clicked should initiate cart.php or it could be reading data from a table doing something on that data like incrementing a quantity and posting it Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.