Hi all, Im in the process of slowly making an online RPG, it is in very early development lol.
At the moment im working on the profiles and having trouble doing so. I thought a session would be a good way to store a signature, then output it to a profile page. The signature is stored in the database, so i need to get the signature out of the database and into the session.
This is the code i have used to make the session:
$sql = "SELECT sig FROM users WHERE username = '".$_POST['uname']."'";
$sig = mysql_query($sql) or die(mysql_error());
$_SESSION['signature'] = ($sig)
Now when i try to call the session using
echo $_SESSION['signature'];
I get the words 'Resource id #13
I dont have a clue what is wrong please help.
Thanks![]()





Bookmarks