|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-03 01:00 UTC] pollita@php.net
[2004-06-03 01:01 UTC] pollita@php.net
[2004-06-03 02:54 UTC] jsgoupil at lookstrike dot com
[2004-06-03 08:36 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Feb 08 11:00:01 2026 UTC |
Description: ------------ When trying to put a ressource of mySQLi in the index of an array, i get the following error : Warning: Illegal offset type in ... I'm running PHP5.0.0RC2 and trying to connect a mySQL4.1 server. When i try to connect the php_mysql.dll (not advanced) to another server, i don't get the "illegal offset" with the same code. (mysql_connect function) Reproduce code: --------------- <?php $link = mysqli_connect("localhost","lookstrike","*****","lookstrike_local"); $query = mysqli_query($link,"SELECT player_id FROM ls_players"); $something = array(); $something[$query] = "1"; mysqli_close($link); ?> Expected result: ---------------- It supposed to work like mySQL (not avanced) Actual result: -------------- Warning: Illegal offset type in ...