// next link (make sure to change searching2.php to the name of your page)
if ($page<$pagenums) {
echo "" . $space . $space . $space . $space . " <a href='searching2.php?page=".($page+1)."' class=main>Next " . $var2 . "</a> »";
}
$strSQL = "SELECT * FROM $table WHERE business_name LIKE '%$searchterm%'
ORDER BY business_name
LIMIT $start,$pagelimit";
$result = mysql_query($strSQL) or die(mysql_error());
for ($i=0; $i <$totalrows; $i++)
{
$row = mysql_fetch_array($result);
// Build your formatted results here.
echo "<p><strong>".($i+1).". ";
echo "<a href=\"http://www.yourcompany.com\">";
echo htmlspecialchars( stripslashes($row["business_name"]));
echo "</a></strong><br> ";
echo "<a href=\"http://www.maporama.com\" target=\"_blank\">Map it!</a>";
echo "</a>";
echo "
<a href=\"http://{$row['webpagelink']}\" target=\"_blank\">";
echo htmlspecialchars (stripslashes($row["webpagelink"]));
echo "</a><br />";
echo htmlspecialchars (stripslashes($row["business_address"]));
echo ", ";
echo htmlspecialchars (stripslashes($row["bus_city"]));
echo ", ";
echo htmlspecialchars (stripslashes($row["businessacct_state_country"]));
echo " ";
echo htmlspecialchars (stripslashes($row["bus_zip"]));
echo "<br>Phone:<strong> ";
echo htmlspecialchars (stripslashes($row["business_phone"]));
echo "</strong> Fax: ";
echo htmlspecialchars (stripslashes($row["business_fax"]));
echo "<p></p></p>";
}
is that what you think my code should look like...? because if that is the case, it's showing all of my records, (8), but only 5 records contain information while record 6,7,8 just shows
6.
Map it!
, ,
Phone: Fax:
7.
Map it!
, ,
Phone: Fax:
8.
Map it!
, ,
Phone: Fax: