Jump to content

[SOLVED] SQL Syntax - Can't Find The Error


refiking

Recommended Posts

Some of your column/field names may be SQL reserved words (Maybe the table name as well). Too lazy to check so I suggest surrounding column & table names in your query with ticks. If anything, it will not have any negative effect.

 

<?php

$update = mysql_query("INSERT INTO `resources` (`eid`, `name`, `source`, `desc`, `link`) 
                       VALUES ('$eid', '$name', '$source', '$desc','$link')")or die(mysql_error());

?>

 

It just hit me that you didn't paste any actual errors you may be getting. That may be a huge clue as to what the problem is.

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.