OK, back to basics.. Lets take a look at this piece of data that I am attempting to INSERT but the query is failing.
with PDO the command $dbhandler->exec($query) fails
with SQLITE command sqlite_queryexec fails.
loading the database with sqlite
$dbhandle = @sqlite_open('data/games.db', 0666, $error);
or PDO
$dbhandle = new PDO('sqlite:data/games.db');
either of the above work fine and create the table as needed. The problem arrise when I go to INSERT a line of data.
So I want to start with looking at the string and the data. There must be something amiss in it. (NOTE: this data INSERTS fine with MYSQL as is)
INSERT INTO BFGGAMES (gameid,gamename,family,familyid,productid,genreid,allgenreid,shortdesc,meddesc,longdesc,bullet1,bullet2,bullet3,bullet4,bullet5,foldername,hasdownload,macgameid,oggameid,hasvideo,hasflash,gamerank,releasedate,gamesize,sysreqos,sysreqmhz,sysreqmem,sysreqdx,sysreqhd,ostype) VALUES ('7318','1 Penguin 100 Cases','1 Penguin 100 Cases','5444','5296','1','1:4:21:26:32','Help Pengoo find his way home!','Guide Pengoo from hatching in the Antarctic, all the way to his first flight!','Oh no! Pengoos alarm clock didnt go off and he didnt hatch in time! Journey with Pengoo the penguin inside a fishing net to New Zealand, and stick with him as he struggles to find his way back home. Surprises are in store as Pengoo meets up with colorful characters and mystical creatures, each with their own problems. Solve mind-bending puzzles and kooky conundrums in this charming Hidden Object game!','Over 90 levels','Funny storyline','Guide Pengoo home!','none','none','en_1-penguin-100-cases','yes','0','0','yes','no','680','2010-02-06 00:00:00','100799704','Windows XP/Vista/7','800 Mhz','128','8.1','102','pc')
ps
For those just "Google-ing" by, This is a hobby of mine. I want to expand my knowledge of other databases (besides MySQL). Any tips are greatly appreciated - currently looking for a type of file based - no config - database. SQLite seems to be it, but its stuborn (oooook, it's me) 😛