This is a discussion on help please! within the MySQL forums, part of the Database Server Software category; --> Che cosa puņ essere? Le due query che cercano sugli ingredienti(r.IDingrediente) o sui piatti(p.nomepiatto), prese separatamente funzionano..... Come posso ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Che cosa puņ essere? Le due query che cercano sugli ingredienti(r.IDingrediente) o sui piatti(p.nomepiatto), prese separatamente funzionano..... Come posso metterle insieme correttamente? Grazie. Hai cercato le seguenti parole: sale - orto - Io ho utilizzato questi ingredienti....sale - sale grosso - Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:\programmi\easyphp1-8\www\chefmaker\visualizza_piatto.php on line 96 Risultati della ricerca: Nessun risultato trovato: indietro Query SQL generata: SELECT * FROM ingredienti WHERE ingrediente LIKE '%sale%' OR ingrediente LIKE '%orto%' OR 0 SELECT DISTINCT nomepiatto, tipopiatto FROM (piatti p JOIN ricette r USING (IDpiatto)) WHERE ((r.IDingrediente = 32 OR r.IDingrediente = 175 OR r.IDingrediente = 0 GROUP BY r.IDpiatto HAVING COUNT(*) = 2) OR (p.nomepiatto LIKE '%sale%' AND p.nomepiatto LIKE '%orto%' AND 1)) ORDER BY p.nomepiatto |
| |||
| Cekko ha scritto il 02/03/2007 11:21 AM: To all the members of ng: following notes are in italian to explain Cekko he MUST write in english, or something like this, :-) in order to eventyally obtain an answer. > Che cosa puņ essere? Questo č un gruppo internazionale e quindi, se vuoi una risposta, devi postare in inglese. :-) E attendo pure io la risposta perchč ho un problema simile. -- Esti Qatzi http://zelohim.it upd 20.01.07 ubuntu user #4898 Il Fattucchiero puņ allacciarsi le scarpe con i piedi. |
| ||||
| On Sat, 3 Feb 2007 11:21:01 +0100, Cekko wrote: > Che cosa puņ essere? Le due query che cercano sugli > ingredienti(r.IDingrediente) o sui piatti(p.nomepiatto), prese separatamente > funzionano..... > Come posso metterle insieme correttamente? > Grazie. > > Hai cercato le seguenti parole: sale - orto - > Io ho utilizzato questi ingredienti....sale - sale grosso - > Warning: mysql_num_rows(): supplied argument is not a valid MySQL result ^^^^^^^^^^^^^^^^^^ > resource in c:\programmi\easyphp1-8\www\chefmaker\visualizza_piatto.php on > line 96 Query failed. There are no rows to count, not even zero. > Risultati della ricerca: > > > Nessun risultato trovato: indietro > > Query SQL generata: > SELECT * FROM ingredienti WHERE ingrediente LIKE '%sale%' OR ingrediente > LIKE '%orto%' OR 0 > SELECT DISTINCT nomepiatto, tipopiatto FROM (piatti p JOIN ricette r USING > (IDpiatto)) WHERE ((r.IDingrediente = 32 OR r.IDingrediente = 175 OR > r.IDingrediente = 0 GROUP BY r.IDpiatto HAVING COUNT(*) = 2) OR > (p.nomepiatto LIKE '%sale%' AND p.nomepiatto LIKE '%orto%' AND 1)) ORDER BY > p.nomepiatto Run this interactively, through the command line interface. Tell us whether it works and what error happens. Please note well that you have two queries listed here, without a ';' separating them. That is enough to make an error alone. -- "Only Irish coffee provides in a single glass all four essential food groups: alcohol, caffeine, sugar, and fat." -Alex Levine |