Stuffing my site into MySQL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Stuffing my site into MySQL

Post by Vegan »

At present I have limited PHP in my site and I was looking at how much work is needed to stuff it into a database. The only part that makes sense is the ads where I am currently just enumerating everything as an array in PHP for want of a dispenser.

Any code available that already resembled my thinking?

Ultimately I wanted to make the ad tool a more powerful object capable of selecting ads for size etc.
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
manohoo
Forum Contributor
Posts: 201
Joined: Wed Dec 23, 2009 12:28 pm

Re: Stuffing my site into MySQL

Post by manohoo »

Please rewrite your question, before you click "submit" read it a few times to make sure that what you wrote makes sense to you. Honestly, I have no idea of what you are talking about.
Limited PHP
what does that mean?
How much work?
Do you really expect an answer in days, hours, minutes...
stuff it into a database
You lost me!
the only part that makes sense is the ads
what ads?

... try a little harder to express yourself properly.
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: Stuffing my site into MySQL

Post by Vegan »

I have about 30 lines of PHP in the site, all todo with either the ads or Goggle Analytics which is stuffed in a separate file to simply revisions.

I was considering moving my ads into MySQL and then select the relevant ad for the site. I have not seen much floating around after using Google a few times to find code examples.

At present I am using a PHP file with the code inside it. It is a simple array that holds the ad code and there is a random number to select which ad is shown, pretty basic right now.
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: Stuffing my site into MySQL

Post by Darhazer »

You can use OpenX (known as OpenAds and phpAdsNew before that) for the ads. really powerful tool.
Post Reply