mattm1712 Posted November 9, 2013 Share Posted November 9, 2013 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']; ?> Link to comment https://forums.phpfreaks.com/topic/283752-session-help/ 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 Link to comment https://forums.phpfreaks.com/topic/283752-session-help/#findComment-1457689 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? Link to comment https://forums.phpfreaks.com/topic/283752-session-help/#findComment-1457755 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.