时间:2021-07-01 10:21:17 帮助过:20人阅读
// pic_database_output.php By Bleakwind
header( "content-type: image/gif");
$Host = "localhost";
$User = "root";
$Password = "";
$Database = "mycicel";
mysqli_connect($Host,$User,$Password) or die("Could not connect:" . mysqli_error());
mysqli_select_db($Database) or die("Could not select database!");
$sql= "SELECT userbase_head FROM `userbase_tables` WHERE `userbase_id`=1";
$result = mysqli_query($sql) or die("Could not perform query!");
$row = mysqli_fetch_array($result);
echo $row['userbase_head'];
?>
// pic_database_output.php By Bleakwind
header( "content-type: image/gif");
$Host = "localhost";
$User = "root";
$Password = "";
$Database = "mycicel";
mysql_connect($Host,$User,$Password) or die("Could not connect:" . mysql_error());
mysql_select_db($Database) or die("Could not select database!");
$sql= "SELECT userbase_head FROM `userbase_tables` WHERE `userbase_id`=1";
$result = mysql_query($sql) or die("Could not perform query!");
$row = mysql_fetch_array($result);
echo $row['userbase_head'];
?>