<?php $host = "127.0.0.1"; $conn=mysql_pconnect($host,"root","") or die(mysql_error());if(!@mysql_select_db("jsj")){ echo "<strong>Warning:< > The database name is not exist!"; exit; } else echo "ok"; ?>
<?php $host = "127.0.0.1"; $conn=mysql_pconnect($host,"root","") or die(mysql_error());if(!@mysql_select_db("jsj")){ echo "<strong>Warning:< > The database name is not exist!"; exit; }$query="";//你要执行的sql语句 mysql_query($query); ?>
$conn=mysql_pconnect($host,"root","") or die(mysql_error());if(!@mysql_select_db("jsj")){
echo "<strong>Warning:< > The database name is not exist!";
exit;
}
else echo "ok";
?>
$conn=mysql_pconnect($host,"root","") or die(mysql_error());if(!@mysql_select_db("jsj")){
echo "<strong>Warning:< > The database name is not exist!";
exit;
}$query="";//你要执行的sql语句
mysql_query($query);
?>