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 Link to comment https://forums.phpfreaks.com/topic/296775-unable-to-get-requested-data-and-write-onto-cart-table-from-posting-form/ Share on other sites More sharing options...
Barand Posted June 12, 2015 Share Posted June 12, 2015 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 Link to comment https://forums.phpfreaks.com/topic/296775-unable-to-get-requested-data-and-write-onto-cart-table-from-posting-form/#findComment-1513744 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 Link to comment https://forums.phpfreaks.com/topic/296775-unable-to-get-requested-data-and-write-onto-cart-table-from-posting-form/#findComment-1513746 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.