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, 2002 10:06 AM Subject: bugs with Widows Me > /* > $var="some long text" > or > $var='some long text' > */ > > if (!mysql_query("INSERT INTO table(field) VALUES($var)")) die("Always > die"); > > /* > 1. MySQL doesn't insert the content of the variable $var into the field > table wich is a VARCHAR type or TEXT type > 2. table contains other fields - type INT or VARCHAR or TEXT - but > problems with or without other fields > 3. no error report on errors logs (Apache, MySQL,EasyPHP) > > installed with EasyPHP v 1.6.0.0 > MySQL 3.23.49 > Windows Millenium > */ > > > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <[EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php