Re: image source from PHP

From: Date: Thu, 23 Jan 2003 23:43:17 +0000
Subject: Re: image source from PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132915@lists.php.net to get a copy of this message
can you copy & paste a little bit of the HTML source of what you're doing? justin on 24/01/03 10:05 AM, Karina S (bali1a@freemail.hu) wrote: > Hello, > > I want to make a sit where an image comes from a database. In the db I store > only the filename and path. I have the following code: > <?php $ps = > '"Pic/'.$row_photos['Photo_File_Name'].'"'; > echo $ps;?> > > <img src=<?php $ps; ?> > > > The echo line print the good string e.g.: "Pic/Myphoto.jpeg" > But I can't see the image. Only a one small whit box wit red x (no image). > > And if I try to put with hard code: <img src "Pic/Myphoto.jpeg" > It works > fine. > > What can I do? > > Thanks! > >

« previous php.general (#132915) next »