Problem,
I use a form data to create a string which will contain info for an sql table builder. It works if I type in info manually, but when I drop in into a string, doesn't work, for examples sake, here is a print $sql:
The master SQL STRING IS: apple CHAR(2), BANNAG CHAR(2), ORGANGE CHAR(2)
So I know the string has the right value, just won't work in code. Any help is greatly appreciated.
# variable table is name of table passed in form data
# $sql is the string value which contains table creation data
# ISSUE SQL STATEMENT TO BUILD TABLE
$resultID=mysql_query("CREATE TABLE $table($sql))",$linkID);
# CHECK FOR SUCCESS!!!
if ($resultID != FALSE)
{
print "<FONT COLOR=GREEN>Table created Successfully!!";
}
else
{
print "<FONT COLOR=RED>Sorry dude, work on your code !!";
}
I use a form data to create a string which will contain info for an sql table builder. It works if I type in info manually, but when I drop in into a string, doesn't work, for examples sake, here is a print $sql:
The master SQL STRING IS: apple CHAR(2), BANNAG CHAR(2), ORGANGE CHAR(2)
So I know the string has the right value, just won't work in code. Any help is greatly appreciated.
# variable table is name of table passed in form data
# $sql is the string value which contains table creation data
# ISSUE SQL STATEMENT TO BUILD TABLE
$resultID=mysql_query("CREATE TABLE $table($sql))",$linkID);
# CHECK FOR SUCCESS!!!
if ($resultID != FALSE)
{
print "<FONT COLOR=GREEN>Table created Successfully!!";
}
else
{
print "<FONT COLOR=RED>Sorry dude, work on your code !!";
}