goodtimeassured Posted May 10, 2009 Share Posted May 10, 2009 Hi Guys, I am trying to parse data from mysql table. However I can not figure out the code to align the content. For some reason it doesnt form a good and presentable display of the products. Also it is taking long for the page to load as its downloading the images. Can some one please help. I have spent a lot of time trying to figure out a solution but I cant seem to get a grip on this <?php $result = mysql_query("SELECT * FROM Taxis", $connection); if(!$result){ die("Database connection failed:" . mysql_error()); } while ($row = mysql_fetch_array($result)){ echo "<br/>"; echo "<table border= 1>"; echo "<tr>"; echo "<td>"; echo "<b>"; echo "<p> ".$row["Title"]."</p>"; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td>"; echo "<p>".$row["Description"]."</p>"; echo "<p>".$row["Country"]."</p>"; echo "<img src=".'"'.$row["Image"].'"'.">"."</p>"; echo "<a href=".'"'.$row["Link"].'"'.">".$row["Price"]."</a>"; echo "</td>"; echo "</tr>"; echo "</table>"; } ?> Thanks, Ninad Quote Link to comment https://forums.phpfreaks.com/topic/157588-need-help-with-feeds/ Share on other sites More sharing options...
Daniel0 Posted May 10, 2009 Share Posted May 10, 2009 Maybe try to check up on how table tags work and check the output code you've generated. You're creating a separate table for each element, but I assume you don't want that. Also, please try to include code tags around your code. I've done it for you this time Quote Link to comment https://forums.phpfreaks.com/topic/157588-need-help-with-feeds/#findComment-830986 Share on other sites More sharing options...
goodtimeassured Posted May 10, 2009 Author Share Posted May 10, 2009 Hi Admin, That was my first post hence dint know about the codes. I am alright with the tables as that is how I wanted to display the content however my problem is IT IS TAKING A LOT OF TIME TO UPLOAD THE PAGE EVEN THOUGH I AM PARSINF THE DATA FROM MYSQL. Secondly I am not sure how to add html tags like align, target inside echo. Can some one help? Ninad Quote Link to comment https://forums.phpfreaks.com/topic/157588-need-help-with-feeds/#findComment-830994 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.