Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
echo text under image
Old 11-23-2009, 08:55 AM echo text under image
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Trying to figure out why the text in the following code doesn't show UNDER the image being displayed in this code, instead, it displays aligned at the bottom right of each image:

Code:
echo "<img src=\"machform/data/form_1/files/".$row['element_3']."\" border=\"1\" alt=\"".$row['element_1']."\" title=\"".$row['element_1']."\">";

echo $row[element_1];
element_1 is the image name (as in the name of the image)
element_3 is the file name (as in the file name of the image including extension in db)

Anyone?
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-23-2009, 11:10 AM Re: echo text under image
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
There are several ways. You could use <br>, place them in different table cells, place them in <div> tags and use the CSS 'clear' attribute or place them both in an element (like <div>) with too small of a width to fit them both.

But this really isn't about php, you could have posted it in a more appropriate forum
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 11-23-2009, 01:41 PM Re: echo text under image
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Thank you, I have figured out...And the mission has only began...Uh, how it hurts to have lost the knowledge, and have to re-learn it all again...
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 11-23-2009, 02:04 PM Re: echo text under image
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
Quote:
Originally Posted by Brian07002 View Post
Uh, how it hurts to have lost the knowledge, and have to re-learn it all again...
I can only imagine, keep it up!
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Reply     « Reply to echo text under image
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13850 seconds with 12 queries