Hi!
I have been using PHP for a couple off days now and is really enjoying the experience so far.
There is something that i cant get to work and need some help with..please.
I am retrieving som records from a database, if there are a lot of post beeing returned i want to show them 5 at the time.
And since i dont want to ask the same question to the database each time the user click´s next or previous i want to store them in a session variable.
I tried something like this.
<?php
session_register ("rssokning");
?>
<?
if (($COMMAND<>'')and ($rssokning<>'')){
$result = $rssokning;
}
else{
$result = $db->Execute($strSQL);
$rssokning = $result
}
presents the result
and writes a link
<?
print "<a target='mainright' href='sok.php?<?=SID?>&CMD=move&POS=".($ABSPOS+$MAXONPAGE)."&name=".$strName."&www=".$strWww."&city=".$strCity."'><b>Nästa >></a>";
?>
This off course is not the complete code but i hope that it is enough for you to understand what i´m trying to do.