Hov, det skulle ikke lige have været gennemstreget.
Error:
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from) VALUES ('Denmark', '12', 'Details', 'name')' at line 1
kode:
- if(get_magic_quotes_gpc()){
- $land = $_POST['land'];
- $pris = $_POST['pris'];
- $note = $_POST['note'];
- }else{
- $land = addslashes($_POST['land']);
- $pris = addslashes($_POST['pris']);
- $note = addslashes($_POST['note']);
- }
-
- $from = $user->get_user();
- mysql_query("INSERT INTO foreslag (land, pris, note, from) VALUES ('$land', '$pris', '$note', '$from')") or die(mysql_error());