undefined constant alert on a field !

From: m a r k u s (tp950138101_at_tpt.ya.com)
Date: 04/29/04

  • Next message: m a r k u s: "Re: undefined constant alert on a field !"
    Date: Thu, 29 Apr 2004 02:51:25 +0200
    
    

    Hi all,

    Why the following code
    while($banner = mysql_fetch_array($query)) {
        print $banner[banner_id];
    }
    give me the following alert
    Notice: Use of undefined constant banner_id - assumed 'banner_id' in
    c:\program files...\banner.php on line 29 ???

    banner_id is a field from the database and not a constant. How to define a
    field ?!!??
    Don't understand.
    Thanks for any help.

    --
    m a r  k u s
    

  • Next message: m a r k u s: "Re: undefined constant alert on a field !"