I am getting the following error:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/a5846646/public_html/4fmemberprofile.php on line 87
The code generating error is:
[php]$memberprofile=$_POST[‘Color’];
//retrieves all information about the 4F member selected
$profile = mysql_query(“SELECT * FROM themighty4f2005 WHERE names=$memberprofile”);
$realprofile = mysql_fetch_array($profile);
// Display profile
$names = $realprofile[‘names’];
$photo = $realprofile[‘photo’];
$email = $realprofile[‘email’];
$phonenumber = $realprofile[‘phonenumber’];
$occupation = $realprofile[‘occupation’];
$currentlocation = $realprofile[‘currentlocation’];
echo “$names
$photo
$email
$phonenumber
$occupation
$currentlocation”;
[/php]
The specific code generating error is in red. PLEASE HELP!