note 33893 added to function.odbc-do
| From: | yashkhopade at hotmail dot com | Date: | Thu, 10 Jul 2003 08:53:33 +0000 |
| Subject: | note 33893 added to function.odbc-do | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-51841@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.odbc-do.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33893
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33893&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33893&report=yes