I'm back.

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

I'm back.

Post 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.
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post by MrPotatoes »

so i'm guessing you aren't drunk anymore then right?
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

No, I'm plenty sober now.

I figured out my problem though ^^
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Daedalus- wrote:I figured out my problem though ^^
What was the problem? An slight intoxication of alcohol?
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post 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.
Post Reply