PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Feb 24, 2020 10:13 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: images in db
PostPosted: Tue May 07, 2002 5:29 pm 
Offline
Forum Newbie

Joined: Sat May 04, 2002 8:48 am
Posts: 20
Location: VA
Guys,

I have an mysql db where I have stored the pathname for an image e.g. ring2.jpg.

I then use the code below to show the image, but nothing pulls up. Any idea what I am doing wrong?


echo "<img src='http://www.umuc.edu/~em680a10/";
echo $row["image"];


The url is : http://nova.umuc.edu/cgi-bin/cgiwrap/em ... oducts.php


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 07, 2002 5:50 pm 
Offline
Forum Regular
User avatar

Joined: Sun Apr 28, 2002 9:53 pm
Posts: 978
try:

echo "<img src='http://www.umuc.edu/~em680a10/";
echo $row["image"];
echo ">";

because i see in your images they have the <br> tag locked on ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 07, 2002 5:52 pm 
Offline
Moderator
User avatar

Joined: Sat Apr 20, 2002 3:14 pm
Posts: 1416
Location: Dallas, TX

_________________


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 07, 2002 5:54 pm 
Offline
Forum Newbie

Joined: Sat May 04, 2002 8:48 am
Posts: 20
Location: VA


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 07, 2002 5:54 pm 
Offline
Forum Regular
User avatar

Joined: Sun Apr 28, 2002 9:53 pm
Posts: 978


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 07, 2002 5:56 pm 
Offline
Moderator
User avatar

Joined: Sat Apr 20, 2002 3:14 pm
Posts: 1416
Location: Dallas, TX

_________________


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 07, 2002 5:56 pm 
Offline
Forum Regular
User avatar

Joined: Sun Apr 28, 2002 9:53 pm
Posts: 978


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 07, 2002 5:59 pm 
Offline
Forum Regular
User avatar

Joined: Sun Apr 28, 2002 9:53 pm
Posts: 978


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 07, 2002 5:59 pm 
Offline
Forum Newbie

Joined: Sat May 04, 2002 8:48 am
Posts: 20
Location: VA


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 07, 2002 6:01 pm 
Offline
Forum Newbie

Joined: Sat May 04, 2002 8:48 am
Posts: 20
Location: VA


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 07, 2002 6:03 pm 
Offline
Forum Newbie

Joined: Sat May 04, 2002 8:48 am
Posts: 20
Location: VA


Last edited by Denisem on Tue May 07, 2002 6:06 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue May 07, 2002 6:05 pm 
Offline
Forum Regular
User avatar

Joined: Sun Apr 28, 2002 9:53 pm
Posts: 978
heh i had the correct idea but i guess i didnt think it all out... good job phice, you made someones day :P


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group