<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Visualizar</title>
</head>
<body>
<?php
$conexion=mysql_connect("127.0.0.1","root","") or die("Error en acceder a la conexion.");
mysql_select_db("curso_php",$conexion) or die("Error al acceder a la base de datos");
$registros=mysql_query("select * from Textos")or die("Error al sacar informacion");
while($reg=mysql_fetch_array($registros)){
echo$reg['Id']." ".$reg['Texto']."<br>";
}
?>
</body>
</html>
Comments