| Code: |
|
$selectRank = "SELECT rank FROM Members WHERE loginName='{$_SESSION['user']}'"; $_SESSION['rank'] = mysqli_query($con,$selectRank); echo 'RANK: '.$_SESSION['rank'].'<br />'; |
This is a code just outputing something from a Database. But I get this error
| Quote: |
|
Catchable fatal error: Object of class mysqli_result could not be converted to string in C:\Program Files\EasyPHP 2.0b1\www\MEMEME2\index.php on line 44 |
Any ideas why?
