I am having a problem with an sql statement Im trying to get information out of 2 databases where information matches basically the url string is test.php?domain=test.com I want this to grab all the ips its using out of the first table, as shown by the hdnpne_table sql then I want to take those results and get information based on that in the hdnpne_bw statement then display them
problem is I dont have the right syntax to pipe in domain, then I have no idea howto join the 2 sql statements for use of the second one
hdnpne_table
hdnpne_bw
problem is I dont have the right syntax to pipe in domain, then I have no idea howto join the 2 sql statements for use of the second one
hdnpne_table
Code:
select * from ips where justification = $_GET['domain']
hdnpne_bw
Code:
select * from bw where ip = "result of above sql"