smart Posted April 16, 2012 Report Share Posted April 16, 2012 Hello everoneI want to run two string query with get method like this http://w3schools.invisionzone.com/index.php?showtopic=12509&view=findpost&p=67512how to write two query string Thanks 1 Link to comment Share on other sites More sharing options...
Err Posted April 16, 2012 Report Share Posted April 16, 2012 You want to use the URL variables to use in your queries, right? $var1 = $_GET['showtopic'];$var2 = $_GET['view'];$var3 = $_GET['p'];$sql = "SELECT * FROM db WHERE $var1 = '12509' AND $var2 = 'findpost' AND $var4 = '67512'"; Link to comment Share on other sites More sharing options...
smart Posted April 16, 2012 Author Report Share Posted April 16, 2012 Yes you r absolutly right pls tell me how i can do this Link to comment Share on other sites More sharing options...
Err Posted April 16, 2012 Report Share Posted April 16, 2012 (edited) I just showed you how in my first post. Edited April 16, 2012 by Err Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now