Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MySQL
#1
When using MySQL, wouldn't this create multi-databases?

Code:
<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
  {
  die(mysql_error());
  }

if (mysql_query("CREATE DATABASE my_db",$con))
  {
  echo "Database created";
  }
else
  {
  echo mysql_error();
  }

mysql_close($con);
?>

One every time the page is loaded?
Reply


Messages In This Thread
MySQL - by Dignity - 07-19-2011, 04:35 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)