Below is my user construct function, and it's grabbing the user details from a database. But when I go to update.php it says Username and/or password not set.
I don't understand why it's doing this as the code is fine, any help? Thanks.
PHP Code:include ("includes/global.php");
$d = mysql_query("SELECT * FROM twitter WHERE user = '$ouser'");
$details = mysql_fetch_array($d);
$use = $details['twituser'];
$pw = $details['twitpw'];
function __construct ($user, $password)
{
$this->Username = "$use";
$this->Password = "$pw";
}


Reply With Quote


