Echoing MYSQL Search Results On A Seperate Page
Posted: Sun Feb 07, 2010 7:05 am
I have written a php search engine script that echos the results rather than sending it to a different page and echoing them there, i have managed to get the script to send it to a different page but i don't know how to echo the results on that page, this is the code im using to send it to a different page:
If anyone could help me on echoing the results on a different page that would be great.
Thanks in advance
Code: Select all
$numrows = mysql_num_rows($result);
$numrows2 = mysql_num_rows($result);
if ($numrows == 0) {
$send1 = "/results/noresults.php";
header("location:$send1");
}
if ($numrows2 == 1) {
$send2 = "/results/result.php";
header("location:$send2");
}
else{
$send3 = "/results/results.php";
header("location:$send3");
}
Thanks in advance