Page 1 of 1

I'm back.

Posted: Tue Jun 13, 2006 6:51 pm
by daedalus__
It just took me two full days to finish upgrading my work computer :(

ahahaha

Everything went wrong when I was trying to build this thing, it was horrible. The only thing that worked the first time was the box when I powered it on after finally getting everything together. I was happy about that.

I just got an ASUS P5DN2-SLI with a Pentium D 2.6ghz and a 256mb GeForce 6600 GT!

So happy.

Happy to be back as well.

I'm still stuck on that same problem I was having a week ago, I'll post about it in the code forum tomorrow.

Posted: Tue Jun 13, 2006 10:04 pm
by MrPotatoes
so i'm guessing you aren't drunk anymore then right?

Posted: Wed Jun 14, 2006 1:18 pm
by daedalus__
No, I'm plenty sober now.

I figured out my problem though ^^

Posted: Wed Jun 14, 2006 1:21 pm
by Chris Corbyn
Daedalus- wrote:I figured out my problem though ^^
What was the problem? An slight intoxication of alcohol?

Posted: Wed Jun 14, 2006 1:48 pm
by daedalus__
haha.

It wasn't slight.

It was more like a few shots, a half gallon of wine, and two tall cans.

I had a page, index.php. It created the page, most importantly, two objects.

Code: Select all

index.php
  obj $DatabaseLayer
  obj $PageBuilder

/* I wanted these to both be global, which is why I declared them both in that page, I had hoped that everything down the line would be able  to use them. So I was stuck here, where I had a something that looked like this */

index.php
  obj $DatabaseLayer
  obj $PageBuilder
    func $ShowPage
      include(menu/$current_page.php)
        call $DatabaseLayer->DbQuery('sqll string', array('vals'))
      include($current_page.php)
    // functions that show the page
The menu page would die at that call to that function without an error message. I tried a million different things but yesterday I made it work by declaring an instance of $DatabaseLayer inside $PageBuilder and then using $this->DatabaseLayer->DbQuery('blah')

It probably sounds stupid but I was friggin stuck! I just wanted the dang thing to be globally accessible.