Re: How to call image from mySql to php file
| From: | Haydar TUNA | Date: | Thu, 22 Feb 2007 04:02:21 +0000 |
| Subject: | Re: How to call image from mySql to php file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249207@lists.php.net to get a copy of this message | ||
Hello again,
I make a mistake in the image.php code at echo($row['resim']);
line. if you change this line echo($row['picture']) , your problem will be
fixed. :))))
I have written table field in Turkish. in Turkish picture means that resim
:)))))
--
Haydar TUNA
Republic Of Turkey - Ministry of National Education
Education Technology Department Ankara / TURKEY
Web: http://www.haydartuna.net
"Chris Carter" <chandan9sharma@yahoo.com>, haber iletisinde sunlari
yazdi:9081704.post@talk.nabble.com...
>
> I have a field in database called "logos" which has one value
> "images/logos/some_logo.jpg"
>
> In my php I am trying to call it in my php file as image. With this code.
>
> $sno = $_REQUEST['sno'];
>
> $query="SELECT logos FROM table WHERE sno = '$sno'";
>
> $result=mysql_query($query);
> $num=mysql_numrows($result);
>
> mysql_close();
> $logos=mysql_result($result,$i,"logos");
>
> echo "
> <div>
> <p> $logos </p>
> </div>";
>
> ?></div>
>
> But getting errors. What is the way to call image in php file from the
> database. I know that this is a very basic question but first time for me.
> I
> ignored this in the begining but now its right infront of me.
>
> Please advice.
>
> --
> View this message in context:
> http://www.nabble.com/How-to-call-image-from-mySql-to-php-file-tf3267012.html#a9081704
> Sent from the PHP - General mailing list archive at Nabble.com.