I was told by some here I have to change what I'm doing to something else. So I have this that is showing the first id's and rows in order from a database:
$selectthesecolumns = "SELECT image, url, webname, description, id FROM `business` WHERE `id` >= $getrowsinorder ORDER BY `id` LIMIT 5";
and I'm setting a cookie for what's happening right now:
$ookie = (isset($_COOKIE['t']) && intval($_COOKIE['t'])+1 : 1;
setcookie("t", $ookie, time()+60*60*24*1825);
That cookies not right yet though I have to say what the cookie is incrementing up from, that's just an example getting me started.
I have it selecting id's but not the last id to help me with the cookie. What I need to know is and I'm not finding it in the php manual or google. I need to know how to grab the last database id row that is being shown now. Because I need to store that last database id that is being shown, so I can write some code for which next ids will be shown next after so much time. Please let me know, these are harder parts for me I need to know what the php commands are for. Thank you.