ARGH.. this is killin me
$this->Open ("localhost", "username", "password")
or die ("line 42");
Im getting the dead line.. is there soemthing wrong with my syntax?
| SitePoint Sponsor |




ARGH.. this is killin me
$this->Open ("localhost", "username", "password")
or die ("line 42");
Im getting the dead line.. is there soemthing wrong with my syntax?





try:
mysql_connect("localhost", "username", "password") or die("line 142");




nah..thats not workin
damn
thanx anyways





Have you got the correct host, username and password?

what the heck is $this->Open() ??
is it a function inside an object YOU defined?
$this is usually only used within a class implementation so that it can call it's own functions and access its own variables.
we need a little more info on what you are doing.
it does look like you have a space between the Open and the () though. dunno if that affects it...
-=Alarion=-
Protollix - Linux hosting from $3.95/m





Youcan only reference a class with $this-> when you're calling it from within that class. You don't appear to be doing that so you need to reference it by whatever you initalised it as in your script.
Bookmarks