![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
20/11/2002, 09:57
|
![Avatar de t0m|ta](http://static.forosdelweb.com/customavatars/avatar23144_1.gif) | | | Fecha de Ingreso: julio-2002 Ubicación: Madrid
Mensajes: 369
Antigüedad: 22 años, 6 meses Puntos: 3 | |
Ponle una arrobita delante
[PHP]
mysql_connect(loquesea);
//Ejecutamos la sentencia SQL
$result=@mysql_db_query("test","select * from tu_tabla");
?>
<table align="center">
<tr>
<th>Nombre</th>
<th>Teléfono</th>
</tr>
<?
//Mostramos los registros
while ($row = @mysql_fetch_array($result))
{
echo '<tr><td>'.$row["campo1"].'</td>';
echo '<td>'.$row["campo2"].'</td></tr>';
}
@mysql_free_result($result);
[PHP]
Eso sí si algo está mal, es mejor arreglarlo que suprimir el warning porque luego te falla y no tienes ni la menor idea de porqué. |