note 106591 added to function.odbc-num-rows

From: Date: Mon, 21 Nov 2011 11:05:24 +0000
Subject: note 106591 added to function.odbc-num-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-184595@lists.php.net to get a copy of this message
Go figure : when using $sql='select a from b where c = "d" ' then {(int)$number=odbc_result_all($r1);} as described below will not give any result. However, switch the quotes around to $sql="select a from b where c = 'd' " and the odbc_result_all trick works. This is counterintuitive because the Access query builder would use double-quotes around the parameter. Also, other odbc engines seem more forgiving about the two ways to use quotes. ---- Server IP: 69.147.83.197 Probable Submitter: 46.184.189.4 ---- Manual Page -- http://www.php.net/manual/en/function.odbc-num-rows.php Edit -- https://master.php.net/note/edit/106591 Del: integrated -- https://master.php.net/note/delete/106591/integrated Del: useless -- https://master.php.net/note/delete/106591/useless Del: bad code -- https://master.php.net/note/delete/106591/bad+code Del: spam -- https://master.php.net/note/delete/106591/spam Del: non-english -- https://master.php.net/note/delete/106591/non-english Del: in docs -- https://master.php.net/note/delete/106591/in+docs Del: other reasons-- https://master.php.net/note/delete/106591 Reject -- https://master.php.net/note/reject/106591 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184595) next »