OK - For the search code:
$query = "SELECT * FROM colorcameras
WHERE camDescription LIKE '%".$keywords['0']."%'LIMIT $from, $max_results";
your syntax for $keywords is fine, but $from won't work - what SQL is reading is
"LIMIT $from, $maxresults", instead of "LIMIT 4, 12" you need to put those variables in quote marks so SQL reads what they represent, not the actual text string:
$query ="SELECT * FROM colorcameras WHERE camDescription LIKE '%keywords['0']%' LIMIT '$from','$max_results'";
results code:
Again, you're still not sending the values correctly, look at the difference between what you write and my code below:
echo '<a href=\"".$_SERVER['PHP_SELF']."?page=$prev\"><<Previous</a> ";
What you are saying is to create this link:
<a href="http://myserver.com/results.php?page=$prev>
You are telling it the the value is '$prev', rather than '4', or whatever the value of $prev is.
See below for what you need:
echo '<a href=\"'.$_SERVER['PHP_SELF'].'?page='.$prev.'\"><<Previous</a>';