Inserting a String Variable into mysql_query() returns "Query was empty" error
| From: | eat pasta type fasta | Date: | Tue, 16 Apr 2002 21:13:38 +0000 |
| Subject: | Inserting a String Variable into mysql_query() returns "Query was empty" error | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-18569@lists.php.net to get a copy of this message | ||
I am creating a string out of bunch of variables and an array and I need
it to become a query which will make me a table.
It looks like this when I echo it:
CREATE TABLE How Are You (Reply1 VARCHAR(255), Reply2 VARCHAR(255),
Reply3 VARCHAR(255), Reply4 VARCHAR(255), Reply5 VARCHAR(255), date
DATE)
and it appears in the code under the name $all_sections, however when I
put into the mysql_query function like so:
$sql = mysql_query($all_sections);
it returns "Query was empty" error, any ideas?
Thanks in Advance.
R>
________________________--__-______-______________
eat pasta
type fasta