Изборът:
Insert заявката:
Грешката:
Код:
<label for="type">type</label>
<select name="type" size="1" id="type">
<option>Music</option>
<option>Fun video</option>
</select>
Insert заявката:
PHP:
$sql = "INSERT INTO `blanka` (`id`, `profile`, `display_name`, `desc`, `type`, `added`, `ip`, )
VALUES (NULL, '$profile', '$display_name', '$desc', NOW(), '$ip');";
$result = mysql_query($sql)or die(mysql_error()."<br />Problem: ".__LINE__);
Грешката:
PHP:
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 ') VALUES (NULL, 'members.php?profile=2', 'stanimir', 'http://www.youtube.com/wa' at line 1
Problem: 128