RE: [PHP-DB] MySQL Returns Error

From: Date: Tue, 05 Aug 2003 17:01:37 +0000
Subject: RE: [PHP-DB] MySQL Returns Error
Groups: php.db 
Request: Send a blank email to php-db+get-29684@lists.php.net to get a copy of this message
> -----Original Message----- > From: Jeff [mailto:jroth1@telus.net] > Sent: Tuesday, August 05, 2003 12:59 PM > To: php-db@lists.php.net > Subject: [PHP-DB] MySQL Returns Error > > Been working on this code all weekend, and I did take > everyone's advice, but > I'm still getting the same error. "Error retrieving records. > From line > "$result = mysql_query($query, $link_id) OR DIE("Error retrieving > records."); " of my code. When I first put the insert query > in, it allowed > me to add one record, then started returning the error, and > hasn't let me > enter another record since. Change that line to: $result = mysql_query($query, $link_id) OR DIE(echo mysql_error()); Make sure you either have magic_quotes_gpc on or (better) have magic_quotes_gpc off and addslashes() to each of the values you're inserting into the db.

« previous php.db (#29684) next »