mattm1712 Posted November 9, 2013 Share Posted November 9, 2013 (edited) i'm trying to save the amount off times my code is viewed with this code but the impression rate isnt counting up any ideas why? Matt This is just an example code because i cant get the sessions to work. <? session_start(); if(isset($_SESSION['count'])) { $_SESSION['count'] = $_SESSION['count']+1; } else { $_SESSION['count'] = 1; } echo $_SESSION['count']; ?> Edited November 9, 2013 by mattm1712 Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted November 9, 2013 Share Posted November 9, 2013 Your script works fine for me, I added full php opening tag, <?php Quote Link to comment Share on other sites More sharing options...
mac_gyver Posted November 10, 2013 Share Posted November 10, 2013 do you have php's error_reporting set to E_ALL and display_errors set to ON in your php.ini (or before your session_start() statement in your code) so that any php detected errors would be reported and displayed? 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.