Ver Mensaje Individual
  #4 (permalink)  
Antiguo 16/12/2010, 15:26
andrexx100
 
Fecha de Ingreso: noviembre-2010
Ubicación: Venezuela - Caracas
Mensajes: 103
Antigüedad: 13 años, 5 meses
Puntos: 0
De acuerdo Respuesta: A mayor registros mas tablas auto-creadas

Gracias a todos, he sufrido para encontrar la solucion pero la he logrado =)...

Les dejo la respuesta:

Hay que ingresar el siguiente codigo PHP, el cual sacara los datos y ira creando automaticamente las tablas:

Código PHP:
<script language="php">
$conexion mysql_connect('localhost','root',''); //REALIZA LA CONEXION 
mysql_select_db("test",$conexion);//SELECCIONA LA BASE DE DATOS "USUARIOS"

$sql "select * from producto"
$result mysql_query($sql,$conexion);//REALIZA LA CONSULTA

echo "<table>"//EMPIEZA A CREAR LA TABLA CON LOS ENCABEZADOS DE TABLA
echo "<tr>";//<tr> CREA UNA NUEVA FILA
echo "<td>ID</td>";//<td> CREA NUEVA COLUMNA
echo "<td>NOMBRE</td>";
echo 
"<td>APELLIDO</td>";
echo 
"<td>TELEFONO</td>";
echo 
"</tr>";

while (
$reg mysql_fetch_array($resultMYSQL_BOTH))
{
echo 
"<tr>";
echo 
"<td>".$reg[0]."</td>";//EN CADA CELDA SE COLOCA EL CONTENIDO DE REG
echo "<td>".$reg[1]."</td>";
echo 
"<td>".$reg[2]."</td>";
echo 
"<td>".$reg[3]."</td>";
echo 
"</tr>";
}

echo 
"</table>";//FINALIZA LA TABLA
mysql_close($conexion);

</script> 

Eso era todo, GRACIAS A TODOS POR SU AYUDA!!!