A PHP Tutorial creating a User Login and Setting Cookies.
Get link
Facebook
X
Pinterest
Email
Other Apps
-
php, tutorial, sql, video, css, user, login, cookies, lifeg0eson666, marcus, recck, youtube, online, science, A PHP Tutorial creating a User Login and Setting Cookies video.
If you see an error in opencart like below: Notice: Trying to access array offset on the value of type null in .../vendor/scss.inc.php on line 1753 then the solution is: Open the file .../vendor/scss.inc.php and go to line as given in the above case it is 1753 where you will see code like below: foreach ($args as $arg) { list($key, $value) = $arg; $key = $key[1]; if (empty($key)) { $posArgs[] = $value; } else { $keyArgs[$key] = $value; } } Then change the line to the following, the changes done is in bold. foreach ($args as $arg) { list($key, $value) = $arg; if (!empty($key[1])) { $key = $key[1]; } if (empty($key)) { $posArgs[] = $value; } else { $keyArgs[$key] = $value; } } ...
customer: login($email, $password): Check whether the customer is approved and check whether the username and password is correct or not. public function login($email, $password) { if (!$this->config->get('config_customer_approval')) { $customer_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "customer WHERE LOWER(email) = '" . $this->db->escape(strtolower($email)) . "' AND password = '" . $this->db->escape(md5($password)) . "' AND status = '1'"); } else { $customer_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "customer WHERE LOWER(email) = '" . $this->db->escape(strtolower($email)) . "' AND password = '" . $this->db->escape(md5($password)) . "' AND status = '1' AND approved = '1'"); } if ($customer_query->num_rows) { $this->session->data['customer_id'] = $customer_qu...
Why do niggers wear wide brimmed hats? So birds won't shit on their lips. How do you stop black kids from jumping on your bed? Put Velcro on the ceiling. Why do niggers smell so bad? So blind people can hate them too. Why does Stevie Wonder smile all the time? He doesn't know he's black. Why can't Stevie Wonder read? He's black. How do you get a nigger down from a tree? Cut the rope. How do you stop a nigger from hanging around in your front yard? Hang him in the back. What do you do when you see a nigger with one leg? Stop laughing and re-load. How many niggers does it take to pave a road? Depends on how you slice them. What are green, pink, purple and orange? A nigger dressed for church. What's the difference between a deer in the road and a nigger in the road? The deer has skid marks in front of it. What is wrong with 4 niggers going over a cliff in a Cadillac? It seats 5. What do you say when you see your T.V. floating around at night? Drop it nigger. Why ar...
Comments
Post a Comment