Vote count:
0
When I get vars from url i make a string. But string must be different if var exists or not on url. I put an example
i have two this url:
http://ift.tt/1HbVaEh http://ift.tt/1BdvgPv
I can get vars from first url with _GET
$var = "HAVING ".$_GET['cli']." AND ".$_GET['resp']." AND ".$_GET['type'];
and $var = "HAVING paris and James and emp"
but on second url i have $var="HAVING AND AND emp" because first and second var is empty
I can use multiple condition for all of vars (url can have 5 or 6 vars) but i think that there are a better solution.
Thanks
asked 37 secs ago
Multiple vars -> different string
Aucun commentaire:
Enregistrer un commentaire