Howdy all,
I'm progressing with PHP but I have 2 questions that are kinda bugging
me.
Say for example, I have a php page similar to this....
if .....
if........
elseif......
else........
else ....
etc. where I have if/else statements nested in other ones.
Now I guess it's good practice to unset created variables within each
if or else section as a) it's less work and b) secure (correct me if
I'm wrong).
IF I'm using mysql_close, do I just need to open one connection at the
top of the page and close it at the bottom, as I think I understand
that php will only run queries within if/else which evaluate to true
(and so all can use one connection), and then I can close the
connection at the bottom of the page as php will go through all the
code?
I hope that made sense :o)