I am really sorry to ask you this and I feel really ashamed.
 
 I think I just good to tired of writing code (writing Lifecode actually is easy and not brain cosuming compared with C++) but I looked at this piece of code
for 1 hour. It gives me an SQL Syntax error and I fail to identify it.
Maybe someone could tell me what I don´t see.
Basically this is just the sql code to insert a record into a table called mod.
This is the code to gather the required information:
Code: Select all
 put "mod" into tTableName
    put "modname, moddescription, modtype, uploaddate" into tFields
    put fld "ModName" into tModName
    put fld "ModDescription" into tModDescription
    put fld "ModType" into tModType
    put the short date into tUploadDate    -- this is nonsensical but gives some variation to the data
 
 Code: Select all
   -- construct the SQL - the :1, :2 & :3 placeholders in the SQL will be filled by variables in the revExecuteSQL line
    put "INSERT INTO " & tTableName & " (" & tFields & ") VALUES (:1, :2, :3, :4)" into tSQL
    
    -- send the SQL to the database, filling in the placeholders with data from variables
    revExecuteSQL gConnectionID, tSQL, "tModName", "tModDescription", "tModType", "tUploadDate"Kind Regards,
Masterchief

 
  
  
  