[thelist] php+mySQL
Jay Blanchard
thelist at lists.evolt.org
Thu May 23 13:57:01 2002
[snip]
Don't forget to concat variables in these statements, and make sure the user
has grants to create, and make sure to flush!
mysql_query("CREATE TABLE $db_tablename ($name char(20) NOT
NULL,$description char(50) NOT NULL,$version char(20) NOT NULL)");
[/snip]
Try concatting the variables;
mysql_query("CREATE TABLE " . $db_tablename . " (" . $name . " char(20) NOT
NULL, " . $description . "char(50) NOT NULL, " . $version . "char(20) NOT
NULL)");
Jay