日期:2014-05-17 浏览次数:20380 次
<?php
// 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'];
?>
<?php
// 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'];
?>