Jump to content

Recommended Posts

Hello all ,

I have a small issue in regards to allowing for my results to be placed horizontally across the page instead of vertically. I find the code i have posted works well when it comes to finding and displaying my information as requested (vertically) , but i am having trouble with finding a way to display the results horizontally.

I know i need a way to identify each result?in order to echo it out in between <td> </td> , but i am still unsure , a point in the right direction would be good as i am struggling to find a way thankyou.

   $title = $runrows['title'];
   $desc = $runrows['description'];
   $url = $runrows['url'];
   $img = $runrows['image']; 
   $id = $runrows['id'];
  
   

   echo "  <table width='100px'>
   <h4><a href='http://$url'><b>$title</b></a><br /> 
   $desc<br> 
   <font color='00CC00'>$url</font></h4> 
   <tr><img src='data:image/png;base64,$img' />
   $id
   ";


   

Link to comment
https://forums.phpfreaks.com/topic/212513-horizontal-tables-php/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.