[PHP] Re: Unable to send variables to MySQL table

2005-11-11 Thread Satyam
It is a good idea to check for errors, like this: mysql_query($add_to_db) or die('Error inserting SQL data at ' . __LINE__ . ' br/' . $add_to_db .'br/' . mysql_error()); If there is no error (non-null return value from mysql_query()) the expresion after the OR does even get looked at, since

[PHP] Re: Unable to send variables to MySQL table

2005-11-09 Thread Ben Ramsey
On 11/9/05 2:15 PM, Stewart Priest wrote: ?php // this opens the connection to the db include 'library/opendb.php'; // this adds detals to the invoice table $item1_desc = $_REQUEST['item1_desc']; $item2_desc = $_REQUEST['item2_desc']; $item3_desc = $_REQUEST['item3_desc']; $item4_desc =