PHP con MySQL
Buenas necesito vuestra ayuda. Tengo este codigo php:
<html>
<head>
<title></title>
</head>
<body>
<?php
include("conexion.inc");
echo"<table border=1>
<tr>
<td>hola</td>
<td>adios</td>
</tr>
<tr>
<td>k tal</td>
<td>kuku</td>
</tr>
/table>"
?>
</body>
</html>
y este es el .inc:
<?php
$mysql_server="localhost";
$mysql_login="root";
$mysql_pass="root";
?>
y las siguientes preguntas:
al trabajar en mac,¿como servidor mysql tengo que poner localhost o 127.0.0.1?
¿Me falta algo en el .inc?
¿Como hago para que se muestre en la tabla los distintos campos que tengo en la base de datos "Proyecto"?
GRACIAS ANTICIPADAS
|