Re: [PHP] first php class take 2

2008-01-29 Thread Andrew Ballard
On Jan 29, 2008 3:36 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > nihilism machine schreef: > > How does this look now? > > just as bad as before. you haven't even tried to run the code have you? > > > > > > > > > class dbconfig { > > public $connInfo = array(); > > public $connInfo[$hostn

Re: [PHP] first php class take 2

2008-01-29 Thread Jochem Maas
nihilism machine schreef: How does this look now? just as bad as before. you haven't even tried to run the code have you? $connInfo; } } ?> public __constructor(){ $this->$connInfo = new dbconfig(); $username = $hostname = $password = $

[PHP] first php class take 2

2008-01-29 Thread nihilism machine
How does this look now? $connInfo; } } ?> $connInfo = new dbconfig(); $username = $hostname = $password = $database = $DB = new PDO("mysql:host=$connInfo[$hostname];dbname= $connInfo[$database]", $connInfo[$username], $c