947740 Posted April 23, 2008 Share Posted April 23, 2008 Try a slight modification of the previous code: (I decided to change it back to the mysql_fetch_assoc, but keep the while out of it) There may have been a slight issue with the array. Also, with the assoc form, you will still be able to call the data by the columnames. $result = $_SESSION['result']; $row = mysql_fetch_assoc($result); Quote Link to comment https://forums.phpfreaks.com/topic/102502-solved-send-results-from-one-php-script-to-another-script/page/2/#findComment-525559 Share on other sites More sharing options...
mjgdunne Posted April 24, 2008 Author Share Posted April 24, 2008 I got it to work thanks, i used the following code: $_SESSION['members'] = array(); while ($row = mysql_fetch_assoc($result)) { $_SESSION['members'][] = $row; And i used $row = $_SESSION['members'][0]; in the second script to use the data. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/102502-solved-send-results-from-one-php-script-to-another-script/page/2/#findComment-525851 Share on other sites More sharing options...
947740 Posted April 24, 2008 Share Posted April 24, 2008 So much for my help. Quote Link to comment https://forums.phpfreaks.com/topic/102502-solved-send-results-from-one-php-script-to-another-script/page/2/#findComment-525993 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.