Hi,
I have two questions, firstly can I create a table with the name of a variable using
php?? This is what I'm trying:
Code:
$query="CREATE TABLE $quote_num
(
ID int(7) NOT NULL auto_increment,
itemid varchar(10) NOT NULL,
itemdesc varchar(50) NOT NULL,
)";
EDIT----------------
Code:
mysql_query("CREATE TABLE '".$quote_num."'
(
ID int(7) NOT NULL auto_increment,
itemid varchar(10) NOT NULL,
itemdesc varchar(50) NOT NULL,
)");
This doesn't work either... and neither of them give an error..
/EDIT------------------
Also, are there any security issues in the following scenario:
A company produces quote and saves to database. Sends an email to client with a link and query string containing quote number to client. Client clicks link and webpage retrieves quote from database. Client checks "accept quote" and submits.
Thanks,
Nathan.