echo "Results";
echo "<p align=center>Sorry, your search: "" . $trimmed . "" returned zero results.</p>";
exit;
}
if (empty($s)) {
$s=0;
}
$sql .= " limit $s,$limit";
$sql_result = mysql_query($sql,$connection)
or die("Couldn't execute the query.");
?>
I have looked through many forums but they don't seem to work with what I am trying to accomplish. Please understand that I am new to this and need lots of guidance.
With no relationship between the tables there is not a way to obtain the results from both tables using only a single query. If you do not have your tables properly normalized, it would be better to use two queries.
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Must read Review for Serious PHP Developers
NuSphere PhpED 5.5
: The Staff of php-editors.com recently spent a few days working with NuSphere
PhpED 5.5
(a popular PHP IDE) and
NuCoder 2.0
(a PHP Encoding Utility), read up on all the details.