![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| I have a class that I use for all things ODBC. To use the class I do things similar to this: $cls_odbc = new odbc_ops; $cls_odbc->db_open(); $query = odbc_exec($cls_odbc->db_conn(), "SELECT * FROM " . $str_page_name . " ORDER BY display_order") or die (odbc_errormsg()); $arr_sections = array(); while($row = odbc_fetch_array($query)) $arr_sections += array($row['f_key'] => $row['section_name']); $cls_odbc->db_close(); unset($cls_odbc); My question is... Is the last line - unset($cls_odbc); - really needed? Does the class instance get properly destroyed when the function goes out of scope? Plankmeister. | |||
| Featured Websites | ||||
|
![]() |
| Tags: classes, unseting |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Defining constants in classes. | Nikolai Chuvakhin | PHP | 3 | 07-01-2007 5:09 PM |
| Help needed on explaining a bit about Classes and HTML forms | Warstar | PHP | 3 | 07-01-2007 5:07 PM |
| classes... why? | Sticks | PHP | 11 | 07-01-2007 5:06 PM |
| When is $_POST set and unset? | kenoli | PHP | 8 | 05-20-2007 6:33 PM |
| Featured Websites | ||||
|