Images

wxdqz

New Member
please help i cant seem to get a image to show up with mysql hers the code that im using

<?
require "global.php";
$connection = @mysql_connect("$server","$user","$password")or die("Could'nt connect. Please contact the administrator.");

$db =@mysql_select_db($base, $connection) or die("Couldnt select database.");
$sql = "Select mainlogo FROM images";
$result = @mysql_query($sql,$connection) or die("Couldn't ececute query.");
while($row = mysql_fetch_array($result)) {
$logo = $row['mainlogo'];
}
?>

<img src=http://www.phpbuilder.com/board/archive/index.php/"images/$logo">
 
Back
Top