PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<odbc_data_sourceodbc_error>
view the version of this page
Last updated: Thu, 21 Aug 2003

odbc_do

(PHP 3>= 3.0.6, PHP 4 )

odbc_do -- Synonym for odbc_exec()

Description

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
odbc_do
yashkhopade at hotmail dot com
10-Jul-2003 05:53
i have use this function so many times. it works well for my requirements. ok well done...

<?php
         $sqlstr
="SELECT bill_no FROM SCROL";
         
$queryresult=odbc_do($conn,$sqlstr);
         
odbc_fetch_row($queryresult,$bills);

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

the out put for this will:

 1
which is actullay first record of resultset.

<odbc_data_sourceodbc_error>
 Last updated: Thu, 21 Aug 2003
show source | credits | sitemap | mirror sites 
Copyright © 2001-2003 The PHP Group
All rights reserved.
This mirror generously provided by: http://php.mirrors.ilisys.com.au/
Last updated: Sat 01 Nov 2003 04:13:36 EST EST