Awesome, that you ALL for your help - the error is gone and I can post to
the DB now, and it works!

But... *grin*

Every time I access or refresh the page, it adds one blank entry to the DB.

Maybe I have the insert query in the wrong place?

"Matt Schroebel" <[EMAIL PROTECTED]> wrote in message

> -----Original Message-----
> From: Jeff [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 12:59 PM
> 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.

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to