For some reason the code I am in the begining stages of programing, keeps generating a unique error.
Fatal error: Can't use function return value in write context in /profile.php on line 4
I get this error with the code below. I am truley frustrated, as line 4 has nothing of the sort, and it isn't my config file because that is just DB information.
<?PHP
require('config.php');
if(isset(secure($_GET['member_id'])))
{
$member_id = (INT)$_GET['member_id'];
$member_info = mysql_query("SELECT user, contact, image, bio FROM team WHERE id = '$member_id' LIMIT 1");
if(mysql_num_rows($member_info) > 0)
{
// we can go ahead and assign it to an array because this user exists
$profile_info = mysql_fetch_assoc($member_info);
echo "<center>
<h2>$profile_info[user]</h2>
<pre>$profile_info[contact]</pre><br>
<img src='$profile_info[image]' width='150' heigth='150'><br>
<br><b>Contact:</b><br>
echo "<p>$profile_info[bio]</p>";
</center>
";
}
else
}
echo "Member ID incorrect";
}
?>