Felix:
Depending on what you're trying to do try either of these:
//Check to see if $color is in DB:
$connection = mysql_connect("localhost","user","pass") or die("Died at
connection.");
$sql = "SELECT * FROM user_prefs WHERE u_id='$UserID'";
$result = mysql_db_query($sql, $connection) or die(
On Wed, Mar 28, 2001 at 01:08:35AM -0700, John Starkey wrote:
> .. ';
> I can't get $color[color_1] to return a value. It's in the db and
> color_1 is a valid table containing a hex value. This is my first
> attempt at using assoc. arrays.
I'm not sure right now, but try $color["color_1