another question ....
i'm having the user input certain search fields from a typical html form .. passing them in with $_POST (<--php stuff) values .. and then i'm stuck at writing my query ...
what i have now is..
$query = "SELECT * FROM networks WHERE name='$name'
and latitude='$latitude'
and longitude='$longitude'
and elevation='$elevation'";
when i input the name to search for it doesn't return any answers becasue the other fields are null from the input field ...
can someone help me with writing the query for optional conditions to search for (if that is even a thing) ... or just clarify if what i'm doing is totally dumb...
thanks much in advance
If programming were as fun as cycling, then we'd need more bike mechanics.
i'm having the user input certain search fields from a typical html form .. passing them in with $_POST (<--php stuff) values .. and then i'm stuck at writing my query ...
what i have now is..
$query = "SELECT * FROM networks WHERE name='$name'
and latitude='$latitude'
and longitude='$longitude'
and elevation='$elevation'";
when i input the name to search for it doesn't return any answers becasue the other fields are null from the input field ...
can someone help me with writing the query for optional conditions to search for (if that is even a thing) ... or just clarify if what i'm doing is totally dumb...
thanks much in advance
If programming were as fun as cycling, then we'd need more bike mechanics.