ik weet niet wat hier fout is...
kan iemand mij helpen?
(hij geeft aan dat de fout zit op lijn 10)
dit is de code:
(ik ben een beginner met php/mysql)
kan iemand mij helpen?
(hij geeft aan dat de fout zit op lijn 10)
dit is de code:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]x[/COLOR][COLOR= #007700]]));
{[/COLOR]
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO gastenboek (naam, email, vraag) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]vraag[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]") or die(mysql_error());
echo Uw vraag is verstuurt!;
}
else
{
echo <form method="[/COLOR]post[COLOR= #DD0000]" action="">;
echo <table border="[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #DD0000]">;
echo <tr>;
echo <td>Uw naam:</td>;
echo <td><input type="[/COLOR]text[COLOR= #DD0000]" name="[/COLOR]naam[COLOR= #DD0000]"></td>;
echo </tr>;
echo <tr>;
echo <td>Uw e-mail adres:</td>;
echo <td><input type="[/COLOR]text[COLOR= #DD0000]" name="[/COLOR]email[COLOR= #DD0000]"></td>;
echo </tr>;
echo <tr>;
echo <td>Uw vraag:</td>;
echo <td><TEXTAREA NAME="[/COLOR]vraag[COLOR= #DD0000]" ROWS="[/COLOR][COLOR= #0000BB]5[/COLOR][COLOR= #DD0000]" COLS="[/COLOR][COLOR= #0000BB]50[/COLOR][COLOR= #DD0000]"></TEXTAREA></td>;
echo </tr>;
echo <tr>;
echo <td> </td>;
echo <td><input type="[/COLOR]submit[COLOR= #DD0000]" value="[/COLOR]Verstuur[COLOR= #DD0000]" name="[/COLOR]x"[COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>[/COLOR][COLOR= #DD0000];
echo [/COLOR][COLOR= #007700]<[/COLOR]/tr[COLOR= #007700]>[/COLOR][COLOR= #DD0000];
echo [/COLOR][COLOR= #007700]<[/COLOR]/form[COLOR= #007700]>[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/mysql_close"]mysql_close[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$con[/COLOR][COLOR= #007700]);[/COLOR]
?> (ik ben een beginner met php/mysql)
als je hem wel wil gebruiken zet hem dan onder de query