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? 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); ?> 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! Link to comment https://forums.phpfreaks.com/topic/52200-solved-create-a-session/#findComment-257448 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.