Help with links please....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rajeevthomas
Forum Newbie
Posts: 2
Joined: Fri Aug 13, 2010 4:14 am

Help with links please....

Post by rajeevthomas »

Hi... I am really new to this. Please help me with this... as part of a gallery, I have categories and a thumbnail. As of now the title/link to the gallery shows up on the side of the thumbnail. How can I place the link below the thumbnail?

Here is the code... I am pulling this info from a database...

Code: Select all

$result_array[] = "<a href='viewgallery.php?cid=".$row[0]."'>".$row[1]."<img src='/photos/categoryimages/category".$row[0].".jpg' border=0 height='133px' width='200px' </a>";
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Help with links please....

Post by requinix »

Not enough information. Post both (a) the PHP code used to generate (b) the actual (=example) HTML output.

Initial suggestion: learn HTML and then stick a <br /> tag in there. And move the <a> and the <img> around.
rajeevthomas
Forum Newbie
Posts: 2
Joined: Fri Aug 13, 2010 4:14 am

Re: Help with links please....

Post by rajeevthomas »

tasairis...thank you for your reply... I actually added a <br /> and that helped.... :D
Post Reply