dba_insert() not working

Posted by latheesan, 01-09-2008, 08:30 AM
Hello, I am trying to create a class to handle dba in php based on the notes found here http://uk3.php.net/dba I am working on the function that inserts the data into a databse file based on these note for the function dba_insert() This is how my code looks like for the Insert() function in my dba class : This is how i am trying to use it : This is the error i am getting : Can someone tell me what this error is about? and how i can fix it? I am on Windows OS (where my localhost test web server is) and i am running php 5.x Oh yea, one other thing. I am not able to make any other type of database. I've tried to make these types: - dbm - ndbm - gdbm - db2 , db3 , db4 - cdb - cdb_make - qdbm Only "flatfile" type is seems to be working =\ why is this? Last edited by latheesan; 01-09-2008 at 08:33 AM.

Posted by Renard Fin, 01-09-2008, 03:43 PM
Not exactly sure here but I think the error is either located in the fact that you can't auth yourself to the Db or the fact that the database isn't chmoded correctly (look at the permissions under your windows security tabs for the anonymous user or something like that).

Posted by Codebird, 01-10-2008, 09:12 AM
yeah I agree with Renard Fin

Was this answer helpful?

 Print this Article

Also Read

Content not loading from cache in iframe / frameset

Posted by DevMonkey, 02-16-2011, 03:52 PMOk, trust me, I have a legit reason to be using iframes...

How to: secure yourself with (( cgitelnet.pl ))

Posted by X-x-X, 05-04-2007, 09:39 PMIt’s very important thing [URL removed] A hacker use...

How to show hidden (dot) files by default and...?

Posted by gurika, 09-13-2007, 10:10 AMHello, on my old centos servers I can show hidden (.file)...

.htaccess question

Posted by MikeWalczak, 10-23-2012, 02:25 PMHey everyone, I've got a question about .htaccess. I...

Trademark: Host Unlimited Domains

Posted by Samuel, 09-03-2002, 04:24 PMThere is a host trying to do this.. lol Posted by...