php 對 mysql數據庫的增
$dbhost=
$dbuser =
$dbpass =
$dbname =
$conn = mysql_connect($dbhost
if($conn)
{
echo
}else
{
echo
}
mysql_select_db($dbname
$sql =
$sql
is_admin
$sql
mysql_query($sql) or die(
$select =
$result = mysql_query($select) or die(
print_r(mysql_fetch_array($result))
$update =
echo $update;
mysql_query($update) or die(
$delete =
mysql_query($delete) or die(
From:http://tw.wingwit.com/Article/program/PHP/201311/20838.html