How create auto multiple tables with php? -


please me out in photo gallery project! want create multiple tables automatically @ time php , each table show's separate logged in person's image. im using code:

$database_connection = mysql_connect("localhost","gallery","phpotl123") or die("not connected") .mysql_error();  $db = mysql_select_db("photo_gallery") or die("not selected") .mysql_error();   $first     = $_post['uname']; $email     = $_post['email']; $password  = $_post['passwrd'];  mysql_query($database_connection, "create table new_user(username varchar(55), password varchar(40), email_id varchar(25))";  $sql = "insert new_user(username, password, email_id) values ('$first', '$password', '$email')";  $query_finish = mysql_query($sql) or die("not inserted").mysql_error();  if(isset($query_finish)) { header('location:index.php'); } else  {  //failed  } 


Comments