Re: How to run .sql files using php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi babu

On 7/13/05, babu <garavindbabu@xxxxxxxxxxx> wrote: 
> i have a set of queries which i have placed them in one .sql file.i want to run this file using php's mssql and  oracle(oci) functions.

you need a database abstraction layer to help you with that (adodb for example)

function fireSQL( $driver )
{

// establish the connection to the database using the specified driver

// read SQL from the file (probably tokenizing it into sql statements)

// feed the sql into the connection

}

-ahmed

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux