Is there a peramiter or way one can write something like this? and if so whats the proper way.
if ($test1 != "Select One")
{
$test1=$_Post['']; // i know syntax is wrong but this isnt my problem
}
else
{
$test="*"; // This is where i am having problems. If the user doesnt select a option on my dropdown it pretty much removes all the data from query results because they have input.
}
$dlquery = "SELECT * FROM Whatever WHERE test1='$test1' AND test2='$test2'";
?>
that way when someone doesnt select a peramiter for test one it just includes any entry in the datafield in the quarry. I would appreciate the help. BTW ive only been doing this for about 3 weeks and this is first real snag ive had that just browsing you guys and w3 hasnt gotten me my answers.