Create the data table code in the PHP tutorial
$link =mysql tutorial _connect ("localhost", "root", "3435945") or Die ("* * *". Mysql_error ());
echo "successfully connects to the server";
if (mysql_select_db (Base2, $link)) echo "Select to Base2 database Tutorial";
$sql = "CREATE TABLE t1 (id int (5) NOT NULL primary key,name varchar (n) not null)";
if (mysql_query ($sql, $link))
echo "Table T1 created successfully";
echo "
";
echo "The table on the current BASE2 database has:";
echo "
";
$table _list=mysql_query ("Show Tables", $link);
while ($row =mysql_fetch_row ($table _list)) {
echo $row [0];
echo "
";
}
http://www.bkjia.com/PHPjc/630870.html www.bkjia.com true http://www.bkjia.com/PHPjc/630870.html techarticle Create the data table code in the PHP tutorial $link =mysql tutorial _connect (localhost,root,3435945) or Die (***.mysql_error ()); Echo successfully connects to the server; if (mysql_ select_db (Base2, $link)) EC ...