It is a good idea to check for errors, like this:
mysql_query($add_to_db) or die('Error inserting SQL data at ' . __LINE__ . '
' . $add_to_db .'' . 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 (TRUE or
On 11/9/05 2:15 PM, Stewart Priest wrote:
Comment out the mysql_query() line and just echo $add_to_db. Then take
the echoed line and try to run it against the database. Does it still
work, then?
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsub
2 matches
Mail list logo