Re: query
| From: | Gianluca Baldo | Date: | Tue, 24 Apr 2001 10:47:23 +0000 |
| Subject: | Re: query | ||
| References: | 1 2 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-9191@lists.php.net to get a copy of this message | ||
Alfonso -
print mysql_error();
viendo el mensaje de error de MySQL tendrías que entender lo que
falla.
Saludos,
Gianluca
JAMD> podeis ayudarme....
JAMD> Tengo un prbelma con una query y a ver si me podeis ayudar:
JAMD> $result = mysql_query ("SELECT sum(c_cocacola) from v_pedidos_sin");
JAMD> $resultado = mysql_fetch_row ($result);
JAMD> pero me da un error en la variable $resultado...
JAMD> Warning: Supplied argument is not a valid MySQL result resource in la liena de $resultado
JAMD> tambien he probado :
JAMD> $filas = mysql_num_rows ($result);
JAMD> print($filas);
JAMD> y me da el mismo error..
JAMD> que estoy haciendo mal?
JAMD> UN SALUDO
JAMD> /-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-
JAMD> Alfonso Martinez
JAMD> Webmaster @puntes on-line
JAMD> webmaster@apuntes.hypermart.net
JAMD> /-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-
gianluca.baldo@bcninedita.com
Bcninédita
EURO RSCG INTERACTION
http://www.bcninedita.com
Planella 39 - 08027 Barcelona (Spain)
Tel. +34 93 253 19 50 (directo 93 253 19 53)
Fax. 34 - 93 211 45 46