Create table variable with spaces
I have a variable $topic = $POST_['topic'] that is entered by the user, it can possibly have spaces. I want to create a table based on this variable. Right now the code creates the table but only uses the first word.
$create="Create TABLE $topic (I know this part works)";
mysql_query($create);
I tried adding single quotes to
$create="Create TABLE '$topic' (I know this part works)";
mysql_query($create);
but it still only uses the first word to create the table. any suggestions?? Sorry for the lack of code but im at work right now so i can't remember the entire code by memory.. lol...
Thanks in Advance!!!
RazorRamon
Junior Poster in Training
74 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
pritaeas
Posting Expert
5,483 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875