I made my first class and I\'m having trouble converting the objects back into strings.
class Cryption
{
var $data;
var $salt;
function __construct($dat
Look at this lines:
$password->sha512();
$result = mysql_query("SELECT * FROM `administrators` WHERE username='$username' and password='$password'");
$password
is an object. It should be:
$pw = $password->sha512();
$result = mysql_query("SELECT * FROM `administrators` WHERE username='$username' and password='$pw'");