Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/07/2006, 01:04
Snake nS
 
Fecha de Ingreso: diciembre-2004
Ubicación: Cordoba - Argentina
Mensajes: 503
Antigüedad: 19 años, 4 meses
Puntos: 1
Estoy utilizando el script de esta forma:

Código:
<?
//Conexion con la base
include_once("./conex/conex.php");

//Ejecutamos la sentencia SQL
$_pagi_sql=mysql_db_query("ipb","select * from insertimg order by datetime DESC");
$columas = 3;

//Paginador
include("includes/scripts/paginator.php");
?>


<table  style="border:1px solid #4A4A4A; background: #EBE5CB; width:100%">
  <tr>
    <td style="background:#F9F8EA; font-weight:bold; text-align:center; border:1px solid black">Imágenes</td>
  </tr>
</table> 
 


 <table  style="border:1px solid #4A4A4A; background: #EBE5CB; width:100%">
<tr>

<?
for ($i = 1 ; $row=mysql_fetch_array($_pagi_sql) ; $i++){
?>
  <td><a href="<? echo $row["link"]; ?>"><img style="border:1px solid black" alt="<? echo $row["nombre"]; ?>" width='150px' heigth'112px' src="<? echo $row["link"];?>"></a></td>
<?
if($i%$columas ==0) echo '</tr><tr>';

}
?>
</tr>
</table>
El tema es que me tira este error bastante raro....

Cita:
Error en la consulta de conteo de registros: Resource id #10. Mysql dijo: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Resource id #10' at line 1