[PHP] Class Design Question...

2003-08-14 Thread anachronism
Hello, I'm rewriting a lot of code and have decided to use classes... I'm wondering if this would be considered bad design or not... Basically in the class I have methods that perform a task, and return true on success, or false on failure. Easy enough. If it returns false however, I want to disp

[PHP] Global variables in a class? Nested classes VS inheritance...

2003-07-30 Thread anachronism
Hello, I'm lookin for some tips on the best way to do this... I make a database connection outside of my classes... lets call it $myDBConnection. I need to use this connection in a class nested in a class... Was wondering the most efficient way of doing this? I don't want to create a new db conne

[PHP] Detecting If A Variable Arrives At A Page From A Get Or A Post...

2003-07-25 Thread anachronism
Quick question... I was wondering if there is a way to detect if any given variable came in to a page via post, or a get from a form. Any help would be appreciated. Thanks, Dennis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Are left joins more efficient?

2003-07-25 Thread anachronism
Hello, I program for a website that gets massive loads of traffic. Optimisation has become an important issue lately. At the moment, all queries on the website follow the same format when joining tables: SELECT * FROM table1,table2 WHERE table1.id=table2.id; My question is, would this format be