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... Link to comment https://forums.phpfreaks.com/topic/49437-session-vars-from-db-query/ 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... Link to comment https://forums.phpfreaks.com/topic/49437-session-vars-from-db-query/#findComment-242403 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... Link to comment https://forums.phpfreaks.com/topic/49437-session-vars-from-db-query/#findComment-242725 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.