fazzfarrell Posted May 20, 2007 Share Posted May 20, 2007 I have this code: <?php //Rob Farrell and Leyon Nevett: add up design cost x hrs $number1 = $row_rsProd['P_Retail_Price']; $number2 = $row_rsUser['Percent']; echo number_format ($number1 / $number2); ?> I know how to create a session - but I am having a blank how to turn this into a session? can any one help? Quote Link to comment https://forums.phpfreaks.com/topic/52200-solved-create-a-session/ Share on other sites More sharing options...
trq Posted May 20, 2007 Share Posted May 20, 2007 Your question is pretty vague.... maybe? <?php session_start(); //Rob Farrell and Leyon Nevett: add up design cost x hrs $number1 = $row_rsProd['P_Retail_Price']; $number2 = $row_rsUser['Percent']; $_SESSION['var'] = number_format ($number1 / $number2); ?> Quote Link to comment https://forums.phpfreaks.com/topic/52200-solved-create-a-session/#findComment-257441 Share on other sites More sharing options...
fazzfarrell Posted May 20, 2007 Author Share Posted May 20, 2007 Must be sunday morning, my brain would not work properly thanks! Quote Link to comment https://forums.phpfreaks.com/topic/52200-solved-create-a-session/#findComment-257448 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.