djcritch Posted March 23, 2008 Share Posted March 23, 2008 hi i am trying to divide a number which is echoed from a session this is what I've got but its not working what is the correct way to do this? <?php echo ($_SESSION['url'] / 60);?> Cheers Dave Link to comment https://forums.phpfreaks.com/topic/97491-divide-a-number/ Share on other sites More sharing options...
wildteen88 Posted March 23, 2008 Share Posted March 23, 2008 What does the $_SESSION['url'] variable hold? What is the result you are expecting? Link to comment https://forums.phpfreaks.com/topic/97491-divide-a-number/#findComment-498816 Share on other sites More sharing options...
Barand Posted March 23, 2008 Share Posted March 23, 2008 And have you called session_start() at the top the script? Link to comment https://forums.phpfreaks.com/topic/97491-divide-a-number/#findComment-498817 Share on other sites More sharing options...
djcritch Posted March 23, 2008 Author Share Posted March 23, 2008 yes sorry I've got it going now <?php echo ($_SESSION['min'] / 60);?> min is a number just added it to the wrong bit of code! blond moment! Link to comment https://forums.phpfreaks.com/topic/97491-divide-a-number/#findComment-498819 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.