What I want to do is create a query that would say if the return radio is selected, then search the db. If not, then continue with the original query.
This is what I have so far and (not suprisingly) it doesn’t work
if ($ret == 'y')
$sql1 = mysql_query("SELECT * FROM search_v Currency='$currency' AND rout_to='$sfrom' AND rout_from='$sto' AND date_avialable='$stoda'") or die(mysql_error()) ;
}
I also use the same IF statement to include a file, but its not willing to send anything either:
if ($ret == 'y')
include ("return.php");
}
It appears that you’re missing an opening curly brace. Simply adding one like so should fix that: