In reply to:
http://www.countybeermakers.org.uk/recipes/recipe.php?table=anniversary&num=1
$query = "SELECT * FROM $table WHERE number=$num";
My guess is that you are assuming that register_globals is enabled (which is something of a security hazard). The variables you are setting in your query string should first be retrieved from the $_GET superglobal array:
$table = $_GET['table'];
$num = $_GET['num'];
If you are working with many variables, you can retrieve all of them at the same time with this:
extract($_GET);
You will encounter the same issue if you ever use HTML forms with PHP. With the method set to "post", for example, you will need to access the form data with the $_POST superglobal array variable.
--------
Simon Jessey | Keystone Websites
Save $97 on yearly plans with promo code SCJESSEY97