I know, there are tons of other topics about this but none match what I need help with. I'm trying to make a user profile system and it gives me the error in the title. Here is my cod:
<?php
$dbname="users";
$host="localhost";
$user="root";
$pass="";
$link = mysql_connect($host, $user, $pass);
mysql_select_db($dbname, $link);
$sql_statement = 'SELECT username, name, aboutme, website FROM userprofile';
$result = mysql_query($sql_statement, $link);
while($row = mysql_fetch_array($result))
{
echo "<b>User:</b> ".$row['username'].'<br>';
}
?>