Ask a Question related to PHP Bugs, Design and Development.
-
mailme at granville dot nl #1
#40798 [NEW]: Array of mysql_result items not recognized as such
From: mailme at granville dot nl
Operating system: WINDOWS XP
PHP version: 5.2.1
PHP Bug Type: MySQL related
Bug description: Array of mysql_result items not recognized as such
Description:
------------
SITUATION:
I build an array using $array[] = mysql_result($resource, $record,
$column);.
Afterwards I want to seek in the array using if (in_array($needle,array))
but I get an error "Warning: in_array() [function.in-array]: Wrong
datatype for second argument". If one line higher I test using is_array()
I will get true and using print_r() also gives me the array contents.
If I add an extra item to the array using $array[] = 'string'. The error
is not given
--
Edit bug report at [url]http://bugs.php.net/?id=40798&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40798&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40798&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40798&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40798&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=40798&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=40798&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40798&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=40798&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=40798&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=40798&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=40798&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=40798&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=40798&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40798&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=40798&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=40798&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40798&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=40798&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40798&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40798&r=mysqlcfg[/url]
mailme at granville dot nl Guest
-
Creating master page where global items arearranged ABOVE local items
When you create a mater page, obviously all the items are arranged below anything on the individual pages. Is there a way of creating a master... -
Changin 1 item in Array changes all items Flex 2 beta 2
I change one item in my array and it ends up changing all the items in that array. I originally thought that the array was just string the memory... -
ATAPI CDROM recognized with boot disk but not recognized when installing linux
I have decided to take the plunge and install linux on one of my old windows machines. I have successfully partitioned the hard drive for exclusive... -
Array Sorting, 2 items...
Hi, Trying to accomplish: I want to sort my array by two columns. The array is setup: Array ( => Array ( -
[PHP] Array Sorting, 2 items...
> -----Original Message----- Well, erm, maybe I've got the wrong glasses on today, or maybe you've made a cut'n'paste boo-boo, but it sure looks...



Reply With Quote

