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!
I’m totally new to programming; trying to learn PHP by editing/creating small scripts. But this one really got me. Here is the template I’m using http://www.dollar5.com/test/datafeed/datafeed.php. All I want to do is display 30 or more records per page. It’s not a big deal for you guys but for me it’s kind of rocket science. Please help me out with this problem.
// your output is defined here
// I HAVE CHANGED IT
$display = "<tr class="td-top">
<td colspan="2" class="name">$name</td>
</tr>
<tr class="tr-bottom">
<td align="center" class="td-left"><a href="$imglr" target="_blank"><img src="$imgsm"class="smallimg"></td>
<td class="td-right"><p class="desc">$desc
<p class="price">Special Sale Price: <span class="amount">$ $price</span></p>
<a href="$url" target="_blank"><img src="details_normal.gif" alt="$name" width="100" height="22" border="0" class="details" hsrc="details_over.gif"></a>
</td>
</tr> ";
//new echo statement
// you should loop the follow lines
// removing the $display variable and looping normally is
// also recommended
print "<table width="100%">";
// start a loop here
print "$display";
// end the loop here
print "</table>";
----
But I want to use my own table structure to display the data; for example 500 records will be displayed in 500 separate tables or 100 records will be displayed in 100 separate tables. It’s like Repeat Region in Dreamweaver.
Almost 22 hours of restless trying but still have no clue how to do this. Excited but also upset …Please give me some idea…