note 106591 rejected from function.odbc-num-rows by thiago

From: Date: Mon, 28 Nov 2011 11:43:33 +0000
Subject: note 106591 rejected from function.odbc-num-rows by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-184716@lists.php.net to get a copy of this message
Note Submitter: pubdc at yahoo dot com ---- 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.

« previous php.notes (#184716) next »