Re: PHP+MySQL=Help(?)

From: Date: Wed, 31 Oct 2001 15:45:51 +0000
Subject: Re: PHP+MySQL=Help(?)
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-73034@lists.php.net to get a copy of this message
. Thanks to Kurt and Justin for the help offered on this simple (now that it is working) problem. I do not know where my stumbling block was but after a good nights rest and some coffee this morning I have this and the GetImageSize function incorporated.. I will list the code incase someone finds problems or a simpler way to go with it but it does seem to work well (at least on the local host) <? mysql_connect('localhost')or die ("Could not connect"); mysql_select_db('img760')or die ("Could not select database"); $results = mysql_query ("select imglocation from img where imgname like '$getimg'"); $row = mysql_fetch_array($results); $imglocation = $row['imglocation']; $size = GetImageSize ($imglocation); ?> Display within the html doc is: <img src="<? echo $imglocation ?>" <? echo $size[3]; ?> Again thanks for all of your patience and help Mike

« previous php.general (#73034) next »