Re: [PHP-DB] Hashes

2001-12-21 Thread Robert Weeks
m' => w_c ); while (list($val, $key) = each($item_array)){ if ($key == $item){ $item_text = $val; } } echo $item_text; Thanks again, Robert - Original Message - From: "Matthew Loff" <[EMAIL PROTECTED]> To: "'Robert Weeks'" <[EMAIL

RE: [PHP-DB] Hashes

2001-12-21 Thread Matthew Loff
Robert-- You're on the right track... I'm assuming $row is the result of a mysql_fetch_assoc() call, and $row['item'] contains the hashed value (either "m_r", "m_c", or whatever)... Try this: m_r, 'Mens Charm' => m_c, 'Womens Ring' => w_r,'Womens Charm' => w_c); #query db and get a result