Posted by Oli Filth on 05/26/06 21:11
freak said the following on 26/05/2006 18:54:
> Using PHP version: *4.3.7*
> I try to define my db vars outside the class!
> Why this will not work?
> class mytest{
> ...
> }
>
> //test example
> ...
> $SelectedDB = mysql_select_db( $this->DBNAME) or die ("<br>database
> error= ".mysql_error());
> $connection = mysql_connect($this->HOST, $this->USERNAME,
> $this->PASSWORD) or die ("<br>".mysql_error());
$this doesn't exist outside a class.
P.S. Please post in this newsgroup as plain-text only.
--
Oli
Navigation:
[Reply to this message]
|