z> mysql_query("INSERT INTO news (author, posted, body) VALUES($author,
z> $posted, $body) ");

I don't really know what the problem is, but you definitely need
to include quotation marks around the variables:

mysql_query("INSERT INTO news (author, posted, body)
        VALUES('$author',  $posted, '$body') ");

Michal


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to