#40798 [Opn->Bgs]: Array of mysql_result items not recognized as such

From: Date: Wed, 14 Mar 2007 01:21:42 +0000
Subject: #40798 [Opn->Bgs]: Array of mysql_result items not recognized as such
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-110322@lists.php.net to get a copy of this message
ID: 40798 Updated by: tony2001@php.net Reported By: mailme at granville dot nl -Status: Open +Status: Bogus Bug Type: MySQL related Operating System: WINDOWS XP PHP Version: 5.2.1 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2007-03-14 01:14:31] mailme at granville dot nl I ACTUALLY ENTERED A SMALL ERROR IN MY SUBMISSION: 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". ------------------------------------------------------------------------ [2007-03-14 01:09:57] mailme at granville dot nl 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 this bug report at http://bugs.php.net/?id=40798&edit=1

« previous php.bugs (#110322) next »