phpbar.de logo

Mailinglisten-Archive

[php] Undefined Index (PHPLIB 7.2)

[php] Undefined Index (PHPLIB 7.2)

Michael Ackermann michael.ackermann_(at)_asd-edv.de
Wed, 10 May 2000 09:39:02 +0200


Lampe mit PHP4RC1 sucht hilfe

folgender code
$query  = "select \nconcat(employ.emp_name, \",  \" , employ.emp_vname) as 
fullname,\n";
$query .= "employ.emp_birth as birthday, employ.emp_entry as entrydate, 
employ.emp_leave as leavedate,\n";
$query .= "employ.emp_id as id, depart.dept_desc as department\n";
$query .= "from employ\n";
$query .= "left join depart on depart.dept_id = employ.dept_id \n";
$query .= " where employ.emp_name != 'Administrator' and emp_active = '1'\n";
$query .= "order by $sort_str,employ.emp_name limit $offset,$entrys\n";
$s->db->query($query);

while ($s->db->Next_Record() )
         {		..............
                 print "<form action=\"change-200.php\" 
name=\"change".$i."\" target=\"200main\" method=\"get\">\n";
                 print "<input type=hidden name=\"fullname\" 
value=\"".$s->db->f("fullname")."\">";
                 print "<input type=hidden name=\"login\" 
value=\"".$s->db->f("login")."\">";
                 print "<input type=hidden name=\"l_rights\" 
value=\"".$s->db->f("rights")."\">";
                   .............................
         } und so weiter

Ich bekomme dann folgende Meldung (Warning) die mich stört
Funktionnieren tut's ja

[10-Mai-2000 10:30:52] PHP Warning:  Undefined index:  login in 
/home/www.asdsupp.de/htdocs/inc/db_mysql.inc on line 227
[10-Mai-2000 10:30:52] PHP Warning:  Undefined index:  rights in 
/home/www.asdsupp.de/htdocs/inc/db_mysql.inc on line 227
[10-Mai-2000 10:30:52] PHP Warning:  Undefined index:  department in 
/home/www.asdsupp.de/htdocs/inc/db_mysql.inc on line 227

in der date db_mysql.inc steht da

..............
   function f($Name) {
     return $this->Record[$Name];
   }
..................................

Vieleicht verstehe ich da ja auch was falsch!?

Michael Ackermann 



php::bar PHP Wiki   -   Listenarchive