Jump to content

how to run two query string in php mysql with get method


smart
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...