Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/12/2011, 14:42
kevinvgp
(Desactivado)
 
Fecha de Ingreso: septiembre-2011
Ubicación: Casupá, Florida, Uruguay
Mensajes: 70
Antigüedad: 12 años, 7 meses
Puntos: 4
Problema con un pequeño codigo

Código PHP:
Ver original
  1. <html>
  2. <head>
  3. <title>Formulario HTML</title>
  4. </head>
  5. <body>
  6. <form action="insert.php" method="post">
  7. Nombre:
  8. <input type="text" name="nombre_form"><br>
  9. Apellido:
  10. <input type="text" name="apellido_form"><br>
  11. <input type="submit" value="Registrar"/>
  12. </form>
  13. </body>
  14. </html>
Código PHP:
Ver original
  1. <?php
  2. $conexion = mysql_connect("localhost","root");
  3. $seleccionar_bd = mysql_select_db("prueba", $conexion);
  4. $nombre = $_POST['nombre_form'];
  5. $clave = $_POST['apellido_form'];
  6. $insertar = mysql_query("INSERT INTO usuarioss (nombre, clave");
  7. /* VALUES ('{$nombre}', '{$apellido}')", $conexion"); */
  8. VALUES ('$nombre', '$clave',' $conexion');
  9. mysql_close($conexion);
  10. ?>


( ! ) Fatal error: Call to undefined function VALUES() in C:\wamp\www\insert.php on line 8
Call Stack
# Time Memory Function Location
1 0.0008 369040 {main}( ) ..\insert.php:

alguien me puede decir cual es el error ?
gracias a todos