jordan Posted January 17, 2007 Share Posted January 17, 2007 In any one .php file, once i <? php and then end it and do a <? php later on, are all variables retained from previous? I'm not sure if it cuts off and starts over or what. Also, would SQL connections be cut off once i close the tag? Link to comment https://forums.phpfreaks.com/topic/34582-general-php-code-question-should-be-fairly-easy/ Share on other sites More sharing options...
ted_chou12 Posted January 17, 2007 Share Posted January 17, 2007 as long as its the same php file, the variables can be echoed whereever on the page as long as the variable is defined previously Link to comment https://forums.phpfreaks.com/topic/34582-general-php-code-question-should-be-fairly-easy/#findComment-162895 Share on other sites More sharing options...
jordan Posted January 17, 2007 Author Share Posted January 17, 2007 [quote author=ted_chou12 link=topic=122820.msg506978#msg506978 date=1169052723]as long as its the same php file, the variables can be echoed whereever on the page as long as the variable is defined previously[/quote]you rule! thanks! :) Link to comment https://forums.phpfreaks.com/topic/34582-general-php-code-question-should-be-fairly-easy/#findComment-162944 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.