Php queries multiple fields.
3 fields! Query now is normal! Domain wants to add these two! How to get the same table! Help dedicatedip assignedips thank you ....
Reply to discussion (solution)
If judgment, then assemble the SQL statement!
Connect the three conditions with and.
Aren't multiple fields currently queried?
I did not understand the question ~
I did not understand the question ~ + 1
You have all queried *. isn't it a multi-field query ?? I don't understand...
Reference the reply from BeyondQqiang on the 4th floor: I did not understand the question ~ + 1
Again, I really cannot afford to hurt myself. I don't know what I want to ask ......
If ($ _ POST ["ip1"] = "query 1") {$ domain1 =$ _ POST [domain1]; if ($ _ POST ["ip2"] = "query 2") {$ domain2 =$ _ POST [domain2]; if ($ _ POST ["ip3"] = "3") {$ domain3 =$ _ POST [domain3]; $ where = 'domain1 = ". $ domain1. "and domain2 = ". $ domain2. "and domain3 = ". $ domain3. "'; $ SQL =" select * from tblhosting where 1 and ". $ where;