First off, I'm very new to PHP and my English sometimes isn't that great, so I already apologize for the guesswork you guys may have to do.
The error I get is:
Catchable fatal error: Object of class stdClass could not be converted to string"
The code I have is:
mysql_connect("nope.com","nope","nope") or die ("Verbindung zur Datenbank konnte nicht hergestellt werden");
mysql_select_db("nope") or die ("Datenbank konnte nicht verbunden werden");
$nnamenow = $_SESSION['username'];
echo(mysql_fetch_object(mysql_query("SELECT Name FROM USER WHERE Username LIKE '$nnamenow'")));
I have tried quite a number of different approaches with query-variables and so on, because until now rewriting code enough times in different ways always solved my issues.