techker Posted September 19, 2007 Share Posted September 19, 2007 hey guy,quick question. is there a way to put an invisible counter on my main page the retrieve the info in my admin panel? Quote Link to comment https://forums.phpfreaks.com/topic/69877-counter-in-admin-panel/ Share on other sites More sharing options...
JJohnsenDK Posted September 19, 2007 Share Posted September 19, 2007 yes there is... just put the counter on the main page to save the data in a database and then retrieve the data in the admin panel... Quote Link to comment https://forums.phpfreaks.com/topic/69877-counter-in-admin-panel/#findComment-350984 Share on other sites More sharing options...
ShoeLace1291 Posted September 19, 2007 Share Posted September 19, 2007 if($_GET[""]){ $query = mysql_query("UPDATE table SET field = field+1"); } Then just use a database fetching code to display it. Quote Link to comment https://forums.phpfreaks.com/topic/69877-counter-in-admin-panel/#findComment-350995 Share on other sites More sharing options...
techker Posted September 19, 2007 Author Share Posted September 19, 2007 if($_GET[""]){ $query = mysql_query("UPDATE table SET field = field+1"); } Then just use a database fetching code to display it. i put this on the main page? Quote Link to comment https://forums.phpfreaks.com/topic/69877-counter-in-admin-panel/#findComment-351469 Share on other sites More sharing options...
Jessica Posted September 19, 2007 Share Posted September 19, 2007 You don't even need that get stuff, just update the counter each time. You could also use a txt file instead. Quote Link to comment https://forums.phpfreaks.com/topic/69877-counter-in-admin-panel/#findComment-351473 Share on other sites More sharing options...
techker Posted September 20, 2007 Author Share Posted September 20, 2007 You don't even need that get stuff, just update the counter each time. You could also use a txt file instead. update with what and how?any example of a code? Quote Link to comment https://forums.phpfreaks.com/topic/69877-counter-in-admin-panel/#findComment-351506 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.