zgkhoo Posted November 18, 2007 Share Posted November 18, 2007 if(isset($_POST['create_pyramid'])){ $sql = "CREATE TABLE tablename how to change tablename to $_POST['tablename']? which the name of table will be decided by user.. thanks in advance Quote Link to comment Share on other sites More sharing options...
~n[EO]n~ Posted November 18, 2007 Share Posted November 18, 2007 Like this ... <?php if(isset($_POST['create_pyramid'])){ $new_table = $_POST['create_pyramid']; $sql = "CREATE TABLE $new_table"; ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.