Welcome Guest, Not a member yet? Register   Sign In
dBase support into CI Database Class
#2

[eluser]kgill[/eluser]
Honestly, your best bet would be to just write a script yourself using PHP's native database support, CI is meant for developing applications using it for a script like this would be like renting a backhoe to dig a 2 inch hole. All you need to do is select from one table in dBase, loop through the recordset and insert that into a corresponding table in your MySQL database.

CI could do it but since CI doesn't support dBase unless you can use ODBC you're going to have to write a dBase driver. If you want to auto create the tables in MySQL based on what's in dBase then you're going to have to figure out a way to make dBase spit out metadata. Then once you've done all that, you still have to code the app to make use of the driver you just made - like I said wrong tool for the job.

- K


Messages In This Thread
dBase support into CI Database Class - by El Forum - 11-22-2008, 09:49 PM
dBase support into CI Database Class - by El Forum - 11-22-2008, 10:22 PM
dBase support into CI Database Class - by El Forum - 05-29-2012, 11:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB