Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: Table name from Post Variable.
09-18-2006, 05:17 AM #1
Table name from Post Variable.
Why doesn't this work - I can't figure it out.
$txt1 = $_POST[Title];
$sql2 = "CREATE TABLE $txt1 (
echo "Your Forum Was Successfully Created. Please Return <a href='index.php'>Here</a>.";
The internet is my Sandbox, and notepad is my Spade n' Bucket.
09-18-2006, 05:48 AM #2
- Join Date
- Sep 2004
- Thanked 40 Times in 40 Posts
Add mysql_error() onto your code:
mysql_query($sql2,$con) or die(mysql_error());
Side note, varchar's max size is 255 and maybe you'd be interested in using the data type of date for your date column.
09-18-2006, 06:12 AM #3