Unix Technical Forum

help please!

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 ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 10:05 AM
Cekko
 
Posts: n/a
Default help please!

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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 10:05 AM
=?ISO-8859-1?Q?zano=AE?=
 
Posts: n/a
Default Re: help please!

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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 10:05 AM
Peter H. Coffin
 
Posts: n/a
Default Re: help please!

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:16 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com