I have a problem with getting CREATE TABLE to create a table. The script is at:
http://hotactress.buyyourgadgets.com/stuff.bbb
I send info to this script with a simple form, one item. It takes that info, and adds it to the table that already exists, like it's supposed to do, but then, It doesn't create a new table at:
$sql="(CREATE TABLE '.$newname.' (...etc...
I tried completely deleting the CREATE TABLE variable, and just entered the following:
mysql_query("CREATE TABLE whatever (this VARCHAR(10)");
I did that to see if I entered something that absolutely should create a table, and it didn't.
I have posted this problem on some of the biggest PHP boards, but everyone tells me it is the way I have my $newname, that it should have "" quotes but that just gives an error, where as, without the quotes, no error. Also, if it were the quotes, then I should be able to get a simple CREATE TABLE to work.
So, noone seems to know the answer, and it's been looked at by a couple hundred people, and they are all stumped. Maybe(hopefully), you can help me figure out what I'm doing wrong.
Thanks in advance.