[PHP] Re: source of global variable

2001-08-25 Thread Dell Coleman
I'm not sure of the problem but something like ? if ($condition) { echo $time} else { //do something else} ? You can also print or echo html from php if that helps your program flow like ? echo Table TRTHtitle/TH/TR TRTD$data/TD/TR /Table; ? Often you will want to

[PHP] Re: source of global variable

2001-08-25 Thread Dell Coleman
I think I did misunderstand -- php is not like C where you declare things global both in the main program and in subroutines. If you are not in a function everything is automatically global; in php functions you need to declare variables to be global. --so you don't need it the problem looks