Jump to content

You have an error in your SQL syntax; check the manual that corresponds to your


Vivid Lust

Recommended Posts

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 '' at line 3

 

Hi, i was wondering if someone could help me with this error please? I've been trying for 30 mins to get it sorted out but can't seem to, here is the code:

 

<?php
...
$sql = "INSERT INTO `films` (`name`, `director`, `releaseDate`, `type`, `genre`,
`translation`, `length`, `synopsis`, `image`, `downloadLink`, `megavideoLink`, `embeddLink` ) 
VALUES ('$name', '$director', '$releaseDate', '$type', '$genre', '$translation', '$legnth', '$synopsis', '$image', '$downloadLink', '$megavideoLink', '$embedLink'";
mysql_query($sql,$connection) or die(mysql_error());
...
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.