Try echoing the actual query being run. It will give you more info to work
with.
Peter
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: 02 November 2004 16:42
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] Problem with script
>
L PROTECTED]
[mailto:[EMAIL PROTECTED]
Enviado el: Tuesday, November 02, 2004 5:42 PM
Para: [EMAIL PROTECTED]
Asunto: [PHP-DB] Problem with script
Hi all, greetings from Phoenix, Arizona!
I'm having a problem with a PHP script and the database it manages.
I'm having his error message:
Quer
On Tue, 2004-11-02 at 10:41 -0600, [EMAIL PROTECTED]
wrote:
> Query failed: You have an error in your SQL syntax. Check the manual
> that
> corresponds to your MySQL server version for the right syntax to use
> near
> 't read card','1099413551')' at line 1
My initial guess is that you do not have
27;'", $text);
addslashes function
$text = addslashes($text);
or mysql_real_escape_string($sql);
bastien
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Problem with script
Date: Tue, 2 Nov 2004 10:41:35 -0600 (CST)
Hi all, greetings from Phoenix, Arizona!
I'm having
Hi all, greetings from Phoenix, Arizona!
I'm having a problem with a PHP script and the database it manages.
I'm having his error message:
Query failed: You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use near
't read car