(PHP 3 >= 3.0.6, PHP 4, PHP 5)

odbc_do -- Synonym for odbc_exec()


resource odbc_do ( resource conn_id, string query )

odbc_do() will execute a query on the given connection.

add a note add a note User Contributed Notes
nmaskell at livingchurch dot net
31-May-2005 10:10
Some of you may be having problems with Access SQL.
I got "Too few parameters" many times before I figured this out.
MS Access does not like double quotes in a SQL string like this:
= 'INSERT INTO table (field1,field2,field3,field4) VALUES ("text value 1", "text 2",3,"text 4")';

This resulted in an obscure error: Too few parameters.
So - The following should work much better:
= "INSERT INTO table (field1,field2,field3,field4) VALUES ('text value 1', 'text 2',3,'text 4')";
yashkhopade at hotmail dot com
10-Jul-2003 06:53
i have use this function so many times. it works well for my requirements. ok well done...


// if we want to access the records
       // then we have to write the following code
echo $bills[0];

the out put for this will:

which is actullay first record of resultset.