Nej..
"Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution." http://www.php.net/manual/en/function.mysql-close.php
/j
------------------
R6
3 svar · 202 visningar · startad av U2K
Är det viktigta att köra en mysql_close(); på alla sidor som letar på databasen?
------------------
//Du ska inte slänga vatten över ån.
PHP vs ASP (10 - 0)
Nej..
"Using mysql_close() isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution." http://www.php.net/manual/en/function.mysql-close.php
/j
------------------
R6
Men det ses väl som "god sed" att avsluta det som man har påbörjat :)
------------------
<A HREF="mailto:chavez@post.netlink.se">Mvh Chavez
</A> UIN: 73975020
Nja... mysql_close(); är väl mer till för att ifall man vill stänga öppningen mitt i scriptet. Fråga mig inte varför man vill göra det. Men det finns säkert en anledning. :)
------------------
"Information wants to be free -- because it is now so easy to copy and distribute casually -- and information wants to be expensive -- because in an Information Age, nothing is so valuable as the right information at the right time."
- John Perry Barlow