Jump to content

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


smart

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...