Wouldn't you need if
(!mysql_query("INSERT INTO table(field) VALUES('$var')")) die("Always die");
?? (Put the $var in single quotes, as it's a text field)
Nick Elliott
- Original Message -
From: "Erumba Gotha Henri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 19,
* Erumba Gotha Henri
> /*
>$var="some long text"
>or
>$var='some long text'
> */
The kind of quoting used within PHP does not matter to mysql.
> if (!mysql_query("INSERT INTO table(field) VALUES($var)")) die("Always
> die");
>
> /*
>1. MySQL doesn't insert the content of the varia