pacome Posted May 1, 2007 Share Posted May 1, 2007 I select from DB and en up with an array... the question is: is it possible to register the variables as session varibles with different names? $sqlVuelos = "SELECT * FROM vuelos ORDER BY RAND() LIMIT 4"; $displayVuelos = mysql_query ($sqlVuelos) or die ('query wrong'); mysql_query ($sqlVuelos) or die (mysql_error ($conVuelos)); while ($rowVuelos = mysql_fetch_array($displayVuelos)) { $vuelo = $rowVuelos["vuelo"]; $tipo = $rowVuelos["tipo"];} thank you... Quote Link to comment Share on other sites More sharing options...
pacome Posted May 1, 2007 Author Share Posted May 1, 2007 you see I need to reuse the result once the page has refreshed... Quote Link to comment Share on other sites More sharing options...
pacome Posted May 1, 2007 Author Share Posted May 1, 2007 I select from DB and en up with an array... the question is: is it possible to register the variables as session varibles with different names? $sqlVuelos = "SELECT * FROM vuelos ORDER BY RAND() LIMIT 4"; $displayVuelos = mysql_query ($sqlVuelos) or die ('query wrong'); mysql_query ($sqlVuelos) or die (mysql_error ($conVuelos)); while ($rowVuelos = mysql_fetch_array($displayVuelos)) { $vuelo = $rowVuelos["vuelo"]; $tipo = $rowVuelos["tipo"];} thank you... Quote Link to comment 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.