Page 1 of 1
how to create table in mysql using php variable
Posted: Thu Oct 23, 2008 6:06 pm
by vidyabhushan
what is the mistake in creating table in mysql using php... please somebody help me...
$qry = "create table"`.$Test_id.`"(question_no int)";
Re: how to create table in mysql using php variable
Posted: Thu Oct 23, 2008 6:08 pm
by jayshields
Code: Select all
$qry = "create table `".$Test_id."`(question_no int)";
Re: how to create table in mysql using php variable
Posted: Thu Oct 23, 2008 6:11 pm
by vidyabhushan
ya i got it... thank buddy.... thank you very much....
Re: how to create table in mysql using php variable
Posted: Thu Oct 23, 2008 6:44 pm
by vidyabhushan
what about this??? this one is not working..
$qry1 = "delete from table `".$Test_id."`";