Can't use field names in print

From: Date: Mon, 14 Jan 2002 02:12:37 +0000
Subject: Can't use field names in print
Groups: php.db 
Request: Send a blank email to php-db+get-15739@lists.php.net to get a copy of this message
To output each row, this works: print("$row[0] - $row[1] - $row[2]<br>"); But using the table's field names, I don't see anything: $ID=$row["ID"]; $test1=$row["test1"]; $test2=$row["test2"]; print ("$ID - $test1 - $test2<br>"); I'm used to using Cold Fusion and want to learn PHP. Any help would be appreciated. Thanks. Pete

« previous php.db (#15739) next »