Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/10/2005, 06:49
pablobaez
 
Fecha de Ingreso: octubre-2005
Mensajes: 129
Antigüedad: 18 años, 6 meses
Puntos: 0
tengo problemas

Forbidden
You don't have permission to access /"borrar.php on this server.

Apache/2.0.54 (Win32) Server at localhost Port 80

-----------------------------------------------------
me sale con el siguiente script
------------------------------------------
<?php
//Conexion con la base
mysql_connect("localhost","root");



//Ejecutamos la sentencia SQL
$result=mysql_db_query("prueba","select rut,nombre,correo from prueba.datos")
?>
<table align="center">
<tr>
<th>Rut</th>
<th>Nombre</th>
<th>Correo</th>
<th></th>
</tr>
<?
//Mostramos los registros
while ($row=mysql_fetch_array($result))
{
echo '<tr><td>'.$row['rut'].'</td>';
echo '<td>'.$row['nombre'].'</td>';
echo '<td>'.$row['correo'].'</td>';
echo '<td><a href=\"borrar.php?rut=%d\">Borrar</a></td></tr>';
//header
}
mysql_free_result($result)
?>
------------------------------------------------------
lo linkeo a este archivo
---------------------------
<?php
$link=mysql_connect("localhost","root");
$seleccion_bd=mysql_select_bd("prueba",$link);
$rut=$_GET ["rut"];
$resultado=mysql_query("delete from .prueba.datos where rut='$rut'"),$link;


echo"dato borrado";
?>


no se que estoy haciendo mal

pablo baez