Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/06/2006, 05:36
joja_2
 
Fecha de Ingreso: noviembre-2002
Mensajes: 1.135
Antigüedad: 21 años, 5 meses
Puntos: 2
a ver si me ayudais con este warning:

hola

me está dando todo el rato este warning y no encuentro la causa:

mysql_fetch_array(): supplied argument is not a valid MySQL result resource

mi codigo es este:

include("../../data/xxx.php");
mysql_select_db($database_xxx,$link);
$result=mysql_query("select CodCliente, Nombre from Clientes where CodCliente=".$_SESSION['codcliente'],$link);
if($row = mysql_fetch_array($result)){
//do{
$nombre=$row["Nombre"];
//}while ($row=mysql_fetch_array($result));
}
mysql_free_result($result);

a ver si me dais pistas...

gracias