dgnzcn Posted January 21, 2013 Share Posted January 21, 2013 (edited) hello friends. i have a dynamic value from mysql row : <?php echo $row_urun['urunid']; ?> how can i add this row to session: <?php echo $row_urun['urunid']; ?> and than, that created session i need add this form value <input name="sayfasi" type="hidden" id="sayfasi" value="WHICH CODE WAS HERE ??" /> Edited January 21, 2013 by dgnzcn Quote Link to comment https://forums.phpfreaks.com/topic/273425-session-help/ Share on other sites More sharing options...
stijn0713 Posted January 21, 2013 Share Posted January 21, 2013 (edited) hello friends. i have a dynamic value from mysql row : <?php echo $row_urun['urunid']; ?> how can i add this row to session: <?php echo $row_urun['urunid']; ?> and than, I think it's hard to find a more basic programming question than this one... how can you assign a value to a variable? Well, read about assignment operators: http://php.net/manua....assignment.php and about session variables: http://be2.php.net/m...tro.session.php. And then, that created session i need add this form value <input name="sayfasi" type="hidden" id="sayfasi" value="WHICH CODE WAS HERE ??" /> what is the question here, you want to add the form value to the session or the other way round? In any ways, i would start with figuring out the first thing. Edited January 21, 2013 by stijn0713 Quote Link to comment https://forums.phpfreaks.com/topic/273425-session-help/#findComment-1407300 Share on other sites More sharing options...
dgnzcn Posted January 21, 2013 Author Share Posted January 21, 2013 hi, thanks for reply firstly. i wanna add urunid value to session then i will use this session in hidden input value Quote Link to comment https://forums.phpfreaks.com/topic/273425-session-help/#findComment-1407301 Share on other sites More sharing options...
Jessica Posted January 21, 2013 Share Posted January 21, 2013 then i will use this session in hidden input value There is absolutely no point in doing that. What the heck are you trying to do, and where is the problem? Quote Link to comment https://forums.phpfreaks.com/topic/273425-session-help/#findComment-1407302 Share on other sites More sharing options...
dgnzcn Posted January 21, 2013 Author Share Posted January 21, 2013 i wanna created products page, i trying user replies form that products. but to every prodyct users can write replies. urunid is identified fr products then i show replies in products page via urunid. sorry my bad english. Quote Link to comment https://forums.phpfreaks.com/topic/273425-session-help/#findComment-1407303 Share on other sites More sharing options...
Jessica Posted January 21, 2013 Share Posted January 21, 2013 Still didn't explain what the problem is. If you want to do what you described, then do it. I suggest you read the links you were given, and the one in my signature on how to get good help. Then ask again when you have determined an actual coding problem. If there is a language barrier so bad that neither side can understand, you might look for a forum in your native language. We have several people here who speak English and another language but this is primarily English, and people can't help if they can't understand the problem. Quote Link to comment https://forums.phpfreaks.com/topic/273425-session-help/#findComment-1407305 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.