PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
ahh thanks that helped .
one question if ure not occupied
how can it be that if i set $cennection instead of $this->connection i get a error but "youre" way i didnt.. i would think its beicly the same thing.
No, you need to read up on classes. Vars defined inside a function are destroyed when you exit the function. In a class, you set it as a class var if you need to access it later. It's the same thing with procedural programming. Check this:
Notice: Undefined variable: connection in code on line 7
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.