Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/05/2003, 16:44
jhelu
 
Fecha de Ingreso: enero-2002
Mensajes: 106
Antigüedad: 22 años, 2 meses
Puntos: 0
Ayuda porfavor,, esta bien esto?

Me gustaria que me revisaran este codigo, algo estoy haciendo mal... en el error me via esto:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/bol/public_html/categorias.php on line 9


<?php
require ("conn.php");

//tablas
$sContent = "";
$sContent = $sContent . "<table border=\"0\" width=\"100%\">";

$oRS = mysql_query( "SELECT * FROM CatLigas ORDER BY Id" );
while ( $row=mysql_fetch_array($oRS) )
{
$Id =$row["id"];
$Ligas =$row["ligas"];

$sContent = $sContent . "<tr>";
$sContent = $sContent . "<td width=\"100%\">$Id</td>";
$sContent = $sContent . "</tr>";
$sContent = $sContent . "<tr>";
$sContent = $sContent . "<td width=\"100%\">$Ligas</td>";
$sContent = $sContent . "</tr>";
}

$sContent = $sContent . "</table><br>";
?>
__________________
Jherrera.NET