MySQL Forums
Forum List  »  General

Mysql Output
Posted by: Quintin Horn
Date: September 21, 2004 03:09AM

Hi all,

I am runninh a normal mysql query and I am getting the output from the database in data format, but I want the output to be represented in a image. I have create the two required images but apon execution of the query the output is supplying the url of the image. Can anuone please assist.

<?php

include ("db.php");

$result = mysql_query("SELECT cabinet FROM basement WHERE cabinet='J17'",$db);

if ($myrow = mysql_fetch_array($result)) {

do {
print ("gif/occ.gif");

} while ($myrow = mysql_fetch_array($result));

} else {

print("gif/free.gif");

}


?>

Regards

Options: ReplyQuote


Subject
Written By
Posted
Mysql Output
September 21, 2004 03:09AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.