clownkevin
Technical User
I have a search page which retrieves data from sql. This is written to the page as follows:
for ($i=0; $i<= $num-1; $i++) {
$row = mysql_fetch_object($r);
print "<h3>$row->name</h3>".
"<p>$row->town<br>".
"$row->county<br>";
if($row->contact) {print "<b>email: <a href='mailto:$row->contact?subject=I found you on Hotel Heaven'>$row->contact</a></b><br>";}
if($row->web) {print "<b>Website: <a href='cgi-bin/axs/ax.pl?$row->web' target=_blank>$row->web</a></b><br>" ;}
print "<b>Telephone:</b> $row->telephone<hr>";
}}
if($num>50) {print "<br><br><h2>Oops!</h2><p>Your search has returned more than 50 results! Please click <a href=search.php3>Here</a> to redefine.<hr> " ;} }
I can't figure out how to display a few rows from the result, with a link which would then display the next batch...
Probably a bit of a newbie question, but please help!
Jim
for ($i=0; $i<= $num-1; $i++) {
$row = mysql_fetch_object($r);
print "<h3>$row->name</h3>".
"<p>$row->town<br>".
"$row->county<br>";
if($row->contact) {print "<b>email: <a href='mailto:$row->contact?subject=I found you on Hotel Heaven'>$row->contact</a></b><br>";}
if($row->web) {print "<b>Website: <a href='cgi-bin/axs/ax.pl?$row->web' target=_blank>$row->web</a></b><br>" ;}
print "<b>Telephone:</b> $row->telephone<hr>";
}}
if($num>50) {print "<br><br><h2>Oops!</h2><p>Your search has returned more than 50 results! Please click <a href=search.php3>Here</a> to redefine.<hr> " ;} }
I can't figure out how to display a few rows from the result, with a link which would then display the next batch...
Probably a bit of a newbie question, but please help!
Jim