note 90702 added to function.odbc-connect

From: Date: Tue, 05 May 2009 14:56:12 +0000
Subject: note 90702 added to function.odbc-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-154234@lists.php.net to get a copy of this message
where is the bug ?? when i exceut the file error show in line where i apply $sqlquery= $sqlquery="select * from dbo.IOData where IODate>='16-Mar-2009' AND HolderNo IN $HolderNo"; -------------Code--------------------------------- <?php $Accessid=Fetchliveemployees(); //$dns="CardV3" //$db_conn = new COM("ADODB.Connection"); //$dns = "DRIVER={ Microsoft Access Driver (*.mdb)}; Server=192.168.3.49;Database=CardV3;"; $dns = "DRIVER={ Microsoft Access Driver (*.mdb)}; DBQ=\\192.168.3.49\c$\Program Files\SYW95A-V3\CardV3.mdb;"; //$db_conn->open($dns); $conn=odbc_connect($dns,'',''); $sqlquery="select * from dbo.IOData where IODate>='16-Mar-2009' AND HolderNo IN $HolderNo"; //echo "query--->$sqlquery"; $process=odbc_exec($conn, $sqlquery); $i=1; $j=0; while(odbc_fetch_row($process)) { $i=$i+1; } $process=odbc_exec($conn, $sqlquery); while(odbc_fetch_row($process)) { if($j<$i) { $Attendencedetail[$j][1]= odbc_result($process,"IODate"); $Attendencedetail[$j][2]= odbc_result($process,"HolderNo"); $Attendencedetail[$j][3]= odbc_result($process,"CardNo"); $Attendencedetail[$j][4]= odbc_result($process,"HolderName"); $Attendencedetail[$j][5]= odbc_result($process,"DepartmentNo"); $Attendencedetail[$j][7]= odbc_result($process,"IOStutus"); $Attendencedetail[$j][8]= odbc_result($process,"IOTime"); $j++; } } odbc_close($conn); ---- Server IP: 59.162.86.33 Probable Submitter: 125.63.91.20 ---- Manual Page -- http://www.php.net/manual/en/function.odbc-connect.php Edit -- https://master.php.net/note/edit/90702 Del: integrated -- https://master.php.net/note/delete/90702/integrated Del: useless -- https://master.php.net/note/delete/90702/useless Del: bad code -- https://master.php.net/note/delete/90702/bad+code Del: spam -- https://master.php.net/note/delete/90702/spam Del: non-english -- https://master.php.net/note/delete/90702/non-english Del: in docs -- https://master.php.net/note/delete/90702/in+docs Del: other reasons-- https://master.php.net/note/delete/90702 Reject -- https://master.php.net/note/reject/90702 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#154234) next »