Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/02/2007, 20:43
Avatar de cmarti
cmarti
 
Fecha de Ingreso: noviembre-2003
Ubicación: Buenos Aires - Argentina
Mensajes: 442
Antigüedad: 20 años, 5 meses
Puntos: 1
Re: pregunta de novato

Hola laudrup. Te paso un código que tengo en uno de mis HSP a ver si te puede servir de ayuda.

<html>
<head>
<title>Zapatos ALMODOVAR</title>
</head>
<body>
<h1>Seccion Zapatos</h1>
<?php
$link = mysql_connect('localhost','pkr102_nickusuario','co ntraseña');
mysql_select_db('pkr102_Zapatos');
$query= "select * from Productos";
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
echo '<p>Number of Secciones found: '.$num_results.'</p>';
for ($i=0; $i <$num_results; $i++)
{
$row = mysql_fetch_array($result);
echo '<p><strong>'.($i+1).'. Sección: ';
echo htmlspecialchars(stripslashes($row['Descripcion']));
echo '</p>';
}
?>
</body>
</html>
__________________
When all else is lost the future still remains.