#19356 [NEW]: mysql_fetch_array() return NULL column name
| From: | webmaster at infopv dot cz | Date: | Wed, 11 Sep 2002 10:55:28 +0000 |
| Subject: | #19356 [NEW]: mysql_fetch_array() return NULL column name | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-19026@lists.php.net to get a copy of this message | ||
From: webmaster@infopv.cz
Operating system: win98SE
PHP version: 4.2.2
PHP Bug Type: MySQL related
Bug description: mysql_fetch_array() return NULL column name
@$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 bug report at http://bugs.php.net/?id=19356&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19356&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19356&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19356&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19356&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19356&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19356&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19356&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19356&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19356&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19356&r=globals