View Single Post
Old 05-05-2009, 09:29 AM   #37 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Quote:
Originally Posted by allworknoplay View Post
I know, the way I see it, I have to at least try to dig up old threads to see if I can learn anything that has been talked about the last 2 years here...

I'm actually playing with your code now...is this a typo?

I see that in your construct, you are calling this method:

$this->connectdb();

But that method doesn't exist anywhere in the class, the closest is:

connect();


So once I implement this, what would you say is next for me in terms of database connection and OO?


What is the next step!!!

EDIT:

Also this is OT, but do you know of any way to initialize multiple arrays at the same time? So instead of this:

$test = array();
$test2 = array();
$test3 = array();

You can somehow create those 3 arrays with a single command?
Does PHP have anything built in for that?
Well it's good that you want to learn

Yes, sorry - that's a typo, should be connect() obviously.
Next step would be .. create a registration page and login page and implement the classes! I promise that it's not as easy as one may think

About the arrays I have no idea. I don't think any language has that? You have to create variables for each array you want to create in any language, so.. You could possibly do it in one line like this:

$test = array(), $test2 = array(), $test3 = array();

but I'm not sure.
__________________
Tanax is offline  
Reply With Quote