I need to convert this function that is currently not returning data to mysqli
I'm specifically getting errors on the 4 $this-> lines.
Thanks!
Code:
function get_user_info() {
$sql_info = sprintf("SELECT real_name, extra_info, email, id FROM %s WHERE login = '%s' AND pw = '%s'", $this->table_name, $this->user, md5($this->user_pw));
$res_info = mysql_query($sql_info);
$this->id = mysql_result($res_info, 0, "id");
$this->user_full_name = mysql_result($res_info, 0, "real_name");
$this->user_info = mysql_result($res_info, 0, "extra_info");
$this->user_email = mysql_result($res_info, 0, "email");
}
I'm specifically getting errors on the 4 $this-> lines.
Thanks!