tengo un problema resulta: que tengo un codigo PHP que si se muestra en Apache, pero no se muestra en XAMPP, osea cuando lo pruebo en Apache corre normal, pero en Xampp 1.7.2, no muestra los registros.
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)
Mi codigo es el siguiente
index.php
Código PHP:
<?php
include ("conexion.php");
?>
<table border="1" bgcolor="#FFFFCC" bordercolordark="#333333">
<tr>
<th>id</th>
<th>nombres</th>
<th>apellidos</th>
<th>dni</th>
<th>direccion</th>
<th>telefono</th>
<th>email</th>
<th>estado</th>
<th>feha de registro</th>
<th>Hora de Registro</th>
<th>Editar</th>
<th>Eliminar</th>
</tr>
<?php
while($filas=mysql_fetch_array($sql))
{
?>
<tr>
<td><?=$filas['idusuario'];?></td>
<td><?=$filas['nombres'];?></td>
<td><?=$filas['apellidos'];?></td>
<td><?=$filas['dni'];?></td>
<td><?=$filas['direccion'];?></td>
<td><?=$filas['telefono'];?></td>
<td><?=$filas['email'];?></td>
<td><?=$filas['estado'];?></td>
<td><?=$filas['fecha_registro'];?></td>
<td><?=$filas['hora_registro'];?></td>
<td><a href="editar.php?id=<?=$filas['idusuario'];?>">editar</a></td>
<td><a href="eliminar.php?id=<?=$filas['idusuario'];?>">eliminar</a></td>
</tr>
<?php
}
?>
</table>
Código PHP:
<?php
//conexion
$conectar = mysql_connect('127.0.0.1','root','') or die ("error en la conexion:". mysql_error());
$db = mysql_select_db('biblioteca',$conectar) or die ("no se puede conectar a la BD". mysql_error());
echo "Mis datos son";
$consulta = "select * from usuario";
$sql=mysql_query($consulta);
?>
donde debo configurar por que yo trabajo con XAMPP :S