Thanks Guys,
($HTTP_POST_VARS['search']) got that part working. I have a couple of questions if anybody has some time.
Question 1.
I have an HTML page with a link that looks like the following:
<a href="display.php?=cpus" ...
What im trying to do is pass the parameter cpus to my PHP page, when watered down looks like the following:
$tables = $HTTP_POST_VARS['table'] . "%";
$sql = "SELECT * \"$tables\" ";
$result1 = mysql_query($sql, $link); //error 2 lies here
$num_rows = mysql_num_rows($result1);
$num_fields = mysql_num_fields(mysql_db_query($dbname, $sql, $link));
I get two errors:
Error #1
Warning: Undefined index: cpus in C:\Program Files\Apache Group\Apache\htdocs/display.php on line 6
Error #2
Warning: Supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Group\Apache\htdocs/display.php on line 19
I believe for error 1 I shouldnt be using $HTTP_POST_VARS to accept the parameter from a link. Hopefully someone can show me what I should be using
Question #2
Im trying to perform a search in MySQL. I tried
$sql = "SELECT * FROM keyboards WHERE name like \"$searchvar\" ";
and it worked fine. How would I modify this statement to include more then one table?
Again, im just a student learing PHP, any help would be greatly appreciated.