#19356 [Bgs]: mysql_fetch_array() return NULL column name

From: Date: Wed, 11 Sep 2002 12:08:06 +0000
Subject: #19356 [Bgs]: mysql_fetch_array() return NULL column name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19031@lists.php.net to get a copy of this message
ID: 19356 User updated by: webmaster@infopv.cz Reported By: webmaster@infopv.cz Status: Bogus Bug Type: MySQL related Operating System: win98SE PHP Version: 4.2.2 New Comment: I know, that $sel != $vyber, my fault. $pol=mysql_fetch_array($sel); But ["kcis"] is NULL. In php 4.0.5 ["kcis"]=>"NBA 272XV-P" Previous Comments: ------------------------------------------------------------------------ [2002-09-11 06:05:46] georg@php.net Sorry, but the bug system is not the appropriate forum for asking support questions. 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 Thank you for your interest in PHP. Please also remember that $sel != $vyber ------------------------------------------------------------------------ [2002-09-11 05:55:28] webmaster@infopv.cz @$sel = MySQL_Query("SELECT * FROM c_cenik LEFT JOIN vo_media ON c_cenik.kcis=vo_media.kcis WHERE c_cenik.kcis='$kcis'") or Die ("Nepodaøilo se vybrat zboží z databáze: ".MySQL_Error()); $pol=mysql_fetch_array($vyber); var_dump($pol); returns: array(33) { [0]=> string(11) "NBA 272XV-P" ["kcis"]=> NULL [1]=> string(11) "NCACTM273XV" ["kcis_dod"]=> string(11) "NCACTM273XV" [2]=> string(1) "2" ["dod"]=> string(1) "2" [3]=> string(21) "ACER TravelMate 272XV" ["nazev"]=> string(21) "ACER TravelMate 272XV" [4]=> string(2) "41" ["kategorie"]=> string(2) "41" [5]=> string(51) ""P4-1,6Ghz/256MB/20GB/ 14""TFT/DVD/modem/Li/XP-Pro"" ["popis"]=> string(51) ""P4-1,6Ghz/256MB/20GB/ 14""TFT/DVD/modem/Li/XP-Pro"" [6]=> string(8) "41647.00" ["cena"]=> string(8) "41647.00" [7]=> string(2) "22" ["dph"]=> string(2) "22" [8]=> string(2) "12" ["zaruka"]=> string(2) "12" [9]=> string(5) "1.000" ["posta"]=> string(5) "1.000" [10]=> string(0) "" ["akce"]=> string(0) "" [11]=> string(3) "192" ["razeni"]=> string(3) "192" [12]=> NULL [13]=> NULL ["obr"]=> NULL [14]=> NULL ["link"]=> NULL [15]=> NULL ["ovl"]=> NULL [16]=> NULL ["detail"]=> NULL } where is ["kcis"]? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19356&edit=1

« previous php.bugs (#19031) next »