Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/10/2006, 11:41
Avatar de humanista
humanista
 
Fecha de Ingreso: abril-2005
Mensajes: 878
Antigüedad: 19 años
Puntos: 15
ERROR en mysql_fetch_array()

hola, estoy haciendo una hemeroteca y, al consultar con un SELECT me saca el rgto. pero me da este error:

Warning: mysql_fetch_array(): 6 is not a valid MySQL result resource


no sé lo q es el nº 6, desde luego no el contenido de ningún campo...

alguien tiene alguna idea de q puede ser?

___________

hago esto:


$pathcompleto="../includes/";

include($pathcompleto . "conec-basedatos.php");
$link=conec_basedatos();

$result=mysql_query("select * from principales where fecha between '$fechaini' and '$fechafin' and estado=1 and tipo=1 order by id",$link);


while($row = mysql_fetch_array($result))

{

echo "<table border=0 cellpadding=0 cellspacing=0 width=100%>";

echo "<tr>";

echo "<td>";
echo "<div align=left><font size=1 face=verdana color=FF6600><b>ACTUALIDAD. </b></font>";
echo "<a class=ver10azu href=actualidad.php?id=$row[id] target=_blank><font size=2 face=verdana color=003D7A><b>$row[titulo]</b></font></div></a>";
echo "</td>";

echo "</tr>";

echo "</table>";

echo "<table border=0 cellpadding=0 cellspacing=0 width=100%>";
echo "<tr height=10>";
echo "<td></td>";
echo "</tr>";
echo "<tr height=1>";
echo "<td>";
echo "<table border=0 cellpadding=0 cellspacing=0 width=100% height=1 background=../compartido/punto.jpg>";
echo "<tr>";
echo "<td width=100%></td>";
echo "</tr>";
echo "</table>";
echo "</td>";
echo "</tr>";
echo "<tr height=10>";
echo "<td></td>";
echo "</tr>";
echo "</table>";

mysql_free_result($result);

}