php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19356 mysql_fetch_array() return NULL column name
Submitted: 2002-09-11 05:55 UTC Modified: 2002-09-11 07:08 UTC
From: webmaster at infopv dot cz Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.2.2 OS: win98SE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: webmaster at infopv dot cz
New email:
PHP Version: OS:

 

 [2002-09-11 05:55 UTC] webmaster at infopv dot 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"]?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-11 06:05 UTC] 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 07:08 UTC] webmaster at infopv dot cz
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"
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 12:00:02 2026 UTC