roma2509 Posted May 11, 2010 Share Posted May 11, 2010 Hello I have tehe code: $qry = "SELECT brand_name, brand_logo, site_link, video_link FROM tableName where catagory = 'Taxi'"; $result = mysql_query($qry) or die (mysql_error()); while ($row = mysql_fetch_assoc($result)){ ?> <div id="categ"> <div id="inside"><?php echo $row['brand_name']; ?></div> <div id="inside1"><a href="#"><img src="<?php echo $row['brand_logo']; ?>" /></a></div> <div id="inside2"><?php echo $row['short_desc']; ?> <a href="<?php echo $row['site_link']; ?>">continuare</a> </div> <div id="inside3"><a rel="shadowbox;width=405;height=340" title="Restaurant Daniel - New York, NY" href="<?php echo $row['video_link']; ?>"><img src="img/tur_act.jpg" /></a></div> </div> <?php } ?> This cod select from table all rows from a category and put it on a div how it is show in the attach.problem is that it shows all the rows for this category (Taxi) but I want to show for exeample 10 results per page and generate a numeric list that will create a link to next page that will show me next result for this category. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/201353-need-some-help/ Share on other sites More sharing options...
sharp.mac Posted May 11, 2010 Share Posted May 11, 2010 dual posting will not help get your answer any faster. If you are looking for someone to give you the code your looking for I suggest hiring a freelancer, otherwise please review your previous post and don't waste others time in begging for a solution. Link to comment https://forums.phpfreaks.com/topic/201353-need-some-help/#findComment-1056388 Share on other sites More sharing options...
phpchamps Posted May 11, 2010 Share Posted May 11, 2010 wht you are asking is called Paging.. there are many paging classes available on google.. you can get classes from phpclasses.org also.. However, i would suggest you to use pear's pager class.. below is the link:- http://pear.php.net/package/Pager Link to comment https://forums.phpfreaks.com/topic/201353-need-some-help/#findComment-1056389 Share on other sites More sharing options...
roma2509 Posted May 11, 2010 Author Share Posted May 11, 2010 dual posting will not help get your answer any faster. If you are looking for someone to give you the code your looking for I suggest hiring a freelancer, otherwise please review your previous post and don't waste others time in begging for a solution. sorry but I am not looking for some one to give me the cod but the advice becouse I need urgent to find an answer.Now I sow the answer that you give me on yearly my post and thank you very match for help Link to comment https://forums.phpfreaks.com/topic/201353-need-some-help/#findComment-1056393 Share on other sites More sharing options...
sharp.mac Posted May 11, 2010 Share Posted May 11, 2010 sorry but I am not looking for some one to give me the cod but the advice becouse I need urgent to find an answer.Now I sow the answer that you give me on yearly my post and thank you very match for help http://www.phpfreaks.com/forums/index.php/topic,297545.0.html In case you were unable to find your previous post. You have all the pieces to the puzzle in-front of you, the only thing lacking is someone else's logic to put it all together for you. Link to comment https://forums.phpfreaks.com/topic/201353-need-some-help/#findComment-1056396 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.