Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/02/2007, 17:47
lmteijon
 
Fecha de Ingreso: diciembre-2006
Mensajes: 58
Antigüedad: 17 años, 4 meses
Puntos: 1
Error!! Sencillo

Hola amigos de php, el siguiente codigo me da error:

Forbidden
You don't have permission to access /Nivel/> on this server.


--------------------------------------------------------------------------------

Apache/2.0.59 (Win32) PHP/5.1.6 Server at localhost Port 80

<?php
if($_POST["submit"])
{
$con = mysql_connect("localhost","root","")
or die("Mierda para el Server!!<br><hr>");
echo ("Conectado al Server!!");
mysql_select_db("nivel",$con)
or die("Mierda para la BD!!<br>");
echo "Conectado a la BD";
$consultica = mysql_query("INSERT INTO seccion (nombre) VALUES ($_POST[nombre])",$con);
echo "Datos insertados!!";


}
else
{?>
<form action="<?php echo $PHP_SELF ?>" method="POST">
<input type="text" name="nombre">
<input type="submit" name="submit" value="click">
</form>
<?php
}
?>