I'm trying to develop an interactive website using php and i want to display image(retrived from mysql database) and some text on the home pag. but the image retrived from my database fills the whole page. how can i display both text and image on the same page?
dagtad 0 Newbie Poster
Recommended Answers
Jump to PostPost your code.
Jump to PostFo the image:
echo "<td><img width=\"300\" src=\"{$row['pic']}\" /></td>";
If you're saving paths. If using data, as you state. Have:
<img src="image.php?id=7" width="300" />
Where the id=7 is the image id from the DB and image.php contains your code.
Jump to PostSweet, are we solved?
All 9 Replies
vibhaJ 126 Master Poster
dagtad 0 Newbie Poster
vibhaJ 126 Master Poster
dagtad 0 Newbie Poster
Kniggles 0 Light Poster
dagtad 0 Newbie Poster

diafol
dagtad 0 Newbie Poster

diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.