Hi,
my problem is that $f will get deleted if I klick on the link to show next entries.
$f ist from a form site (<input type="text" name="f" size="50">). The other variables
like $ort or $plz will not get deleted if I call this site twice.
here is the script:
echo "f=$f";
if (empty($offset)) {$offset=0;}
if ($f AND $ort AND !$nachname AND !$plz): $suche= "ort='$ort' AND
fach1='$f'"; $suche2= "fach1=$f&ort=$ort";endif;
$result = mysql_query("SELECT FROM arzt WHERE $suche");
$numrows = mysql_num_rows($result);
$results = mysql_query("SELECT FROM arzt WHERE $suche limit
$offset,$limit");
$pages=intval($numrows/$limit);
if ($numrows%$limit) {$pages++;}
if (!(($offset/$limit)==$pages-1) && $pages!=0)
{$newoffset=$offset+$limit; print "<a
href=\"$PHP_SELF?$suche2&offset=$newoffset\">show next entries</a>";}
Please can anyone help me?
bye,
Roland