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 Link to comment https://forums.phpfreaks.com/topic/77803-solved-how-to-create-table-using-user-input-name/ 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"; ?> Link to comment https://forums.phpfreaks.com/topic/77803-solved-how-to-create-table-using-user-input-name/#findComment-393791 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.