Jump to content

ufg

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ufg's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello everyone, I am very new to PHP (been learning/coding about a month now), and while I am coding my site I have come across a major stumbling block. I am writing a very basic CMS for my site (and for a couple of friends) but I seem to be having some trouble with the OOP part. How it works is like this: index.php - checks if files and things exist, if they do it includes them and then includes the file "content_display.php" which handles everything else, like the URL format (index.php?page=login) content_display.php - need access to the classes but everytime I include these files I get the error "Cannot redefine class MySQL in file ....." header.php - also needs access to the classes but I get the same error as I do with content_display.php menu.php - same as header.php the various mod files (like register.php, login.php) also the same as the other files. I hope somebody actually understands what I am trying to say, if it would help I can probably release the source for you all so that maybe you might be able to better understand me. P.S. Sorry if this is in the wrong place.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.