Re: Select a table inside a db

From: Date: Wed, 25 Dec 2002 00:14:40 +0000
Subject: Re: Select a table inside a db
References: 1  Groups: php.db php.db 
Request: Send a blank email to php-db+get-24361@lists.php.net to get a copy of this message
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

« previous php.db (#24361) next »