View Single Post
Old 11-05-2005, 03:18 PM   #1
peterl3233
Green Mole
 
Join Date: Nov 2005
Posts: 4
Exclamation Array variables in MySQL UPDATES

I'm trying to use a MYSQL fieldname as a key in an indexed array .. Maybe there is something basic I'm missing?

The statement : $sql13 = mysql_query("UPDATE $table1 SET recored1 = '$arrayvalue[ID]' " ); just refuses to place the correct arrayvalue in the table1. (no failure .. it just places a o.oo value in the records.

ID is in integer record in $table1.
$arrayvalue is an indexed array with a 100 or so values

Not sure if i'm very dumb or just too smart (prob the former) ?
peterl3233 is offline   Reply With Quote