Hey Guys, I'm having a problem with if statements for some reason.:mad:
I need to authenticate a user and at the same time check to see if the user has logged in in the past.
I have the following code:
if ($qls->user_info['username'] == '') {
require_once('html/login_form.php');
if{$qls->user_info['last_login'] == 0) {
require_once('html/nextstep.php');
}
}
else {
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>WeGoh | Home</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />';
include ('search.js');
for some reason it doesn't work. Any help would make me super happy 😃