Re: [PHP-DB] mysql_fetch_assoc question

2002-09-04 Thread DL Neil
Hey Graeme, > $MemberID = @mysql_query("SELECT ID FROM SiteMember WHERE Username = > '$valid_user'"); > $array = mysql_fetch_assoc($MemberID); > print_r($array); > this will produce: > Array ( [ID] => 3 ) > > All I want is the value 3 so that I can go ahead and insert that into the > Lookup table

[PHP-DB] mysql_fetch_assoc question

2002-09-04 Thread Graeme McLaren
Hey all, I managed to find that if I do: $MemberID = @mysql_query("SELECT ID FROM SiteMember WHERE Username = '$valid_user'"); $array = mysql_fetch_assoc($MemberID); print_r($array); this will produce: Array ( [ID] => 3 ) All I want is the value 3 so that I can go ahead and insert that into t