en donde debo mostrar por pantalla la tabla y los campos que cree en MYSQL, obbviamente conectandola, el error me decia que era por una "," , en la linea 7. porfavor alguien me puede ayudar?
<?php
include "conexioon.php";
if (!isset($accion))
{
echo "
<html>
<H3> GRABAR DATOS </H3>
<form name="form1" method="post" action="guardar.php?accion = guardar">
<p> nombre:<br>
<input type = "text" name="nombre">
<p> apellidos:<br>
<input type = "text" name="apellidos">
<input type ="submit" name = "submit" value="guardar datos">
</form>
<html>"
}
elseif ($accion=="guardar")
{
include "conexioon.php";
$resultado= MYSQL_QUERY ("INSERT INTO usuarios (nombre, apellidos,) VALUES (",$nombre, $apellidos)", $conexioon);
<H3> DATOS GUARDADOS </H3>";
}
?>
MENSAJE DE ERROR:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\AppServ\www\prog2\guardar.php on line 8
ayuda !
![Distraido](http://static.forosdelweb.com/fdwtheme/images/smilies/rolleyes.png)