criat Posted March 17, 2014 Share Posted March 17, 2014 (edited) I have made ahook to redirect the user to Cart if he has any products in his cart: And it displays a message in cart saying he got redirected there because he has items on cart. The problem with it, is that it echoes the message even if the client REGISTERS, it shouldn't show this message if it's the first time the client is logging in! What can I do to fix it? Thanks! Edited March 18, 2014 by criat 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted March 18, 2014 Share Posted March 18, 2014 first you don't need this line: session_start(); you may need to check in "tblclients" for "lastlogin" if it's empty or equal 0000-00-00 00:00:00 hope this help you 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.