invisigoth Posted April 3, 2007 Report Share Posted April 3, 2007 Salve a tutti volevo chiedere un aiutino per php con dreamweaver ho bisogno di fare una ricerca a più campi Nome Cognome Indirizzo Città con una like di tutti i possibili valori sia a dx che a sx del parametro passato da una form WHERE cognome LIKE %colname4% and nome LIKE %colname1% ecc... ma devo per forza riempire tutti i i campi della form altrimenti non mi trova niente come posso risolvere Grazie mille in anticipo a tutti. Link to comment Share on other sites More sharing options...
darioc Posted April 5, 2007 Report Share Posted April 5, 2007 Prova con OR anzichè AND Link to comment Share on other sites More sharing options...
vdm Posted April 5, 2007 Report Share Posted April 5, 2007 Non funziona. Devi costruirti la stringa di query dinamicamente, mettendo solo le coppie per le quali il parametro ha un valore <> "" 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