Quiero diseñar una página llamada index.php que lea los datos de una base de datos MySQL.
En la base de datos tengo uno creado que se llama prueba01 y una tabla llamada tabla01.
En MySQL creé una tabla:
CREATE TABLE `tabla01` (
`RELE_1` tinyint(1) DEFAULT NULL,
`RELE_2` tinyint(1) DEFAULT NULL,
`RELE_3` tinyint(1) DEFAULT NULL,
`RELE_4` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Quiero crear código necesario bajo php que lea esa tabla01 y se muestre en index.php.
¿Cómo puedo hacerlo?
http://es2.php.net/manual/es/book.mysql.php
http://w3schools.com/php/php_mysql_select.asp
Saludos
while(mysql_fetch_array(mysql_query("select * from tabla01")))
Mostrar_datos($mysql_objetc);
Saludos