Jump to content

Need help with feeds!


Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/157588-need-help-with-feeds/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/157588-need-help-with-feeds/#findComment-830994
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.