Code: Select all
if ($id == "")
{$id = '%';}
You find out here that id is not supplied to the script.
You give it a value so that any value in the database will be returned.
You could also give it some default value or give an error message and exit you're script.
Greetz Daan