Re: query
| From: | J.Alfonso Martinez Devesa | Date: | Tue, 24 Apr 2001 10:56:39 +0000 |
| Subject: | Re: query | ||
| References: | 1 2 3 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-9193@lists.php.net to get a copy of this message | ||
solucionado, gracias...
*********** REPLY SEPARATOR ***********
On 24/04/01 at 12:47 Gianluca Baldo wrote:
>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
>JAMD> $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
>
>
>
>---------------------------------------------------------------------
>Archivo On-line: http://www.phpes.com/
>Manual PHP en español: http://www.php.net/manual/es/
>Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com