Connect to MYSQL database through PHP
$conn = mysql_connect("localhost","root","password") or die("Unable to connect to the database");
mysql_select_db("table",$conn) or die ("Find Data source not found");
---------------------------------- ----------------------------------------
Passed Create MYSQL database with PHP
$conn = mysql_connect("localhost","root","password") or die("Unable to connect to the database");
mysql_create_db("webjx") or die("Unable to create the database" ; -------------------------------------------------- -----------------------
Create mysql table
$conn = mysql_connect("localhost","root","password") or die("Unable to connect to the database"); mysql_select_db("webjx",$conn) or die("Unable to connect to the database") Connect to database webjx"); $sql = "create table webjx_table(
ids integer not null auto_increment,
http://www.bkjia.com/PHPjc/509206.html$conn = mysql_connect("localhost","root","password") or die("Unable to connect to the database");
mysql_select_db("table",$conn) or die ("Find Data source not found");
---------------------------------- ----------------------------------------
Passed Create MYSQL database with PHP
$conn = mysql_connect("localhost","root","password") or die("Unable to connect to the database");
mysql_create_db("webjx") or die("Unable to create the database" ; -------------------------------------------------- -----------------------
Create mysql table
$conn = mysql_connect("localhost","root","password") or die("Unable to connect to the database"); mysql_select_db("webjx",$conn) or die("Unable to connect to the database") Connect to database webjx"); $sql = "create table webjx_table(
ids integer not null auto_increment,
primary key(ids)
)";
$mysql_query($sq l) or die(mysql_error());
)";
$mysql_query($sq l) or die(mysql_error());