[PAYING] Can someone make this for me

  • Fanatic
  • Born
  • Born
  • No Avatar
  • Joined: Sep 15, 2011
  • Posts: 3
  • Status: Offline

Post September 15th, 2011, 6:37 am

I am in need of a page, which can take the template called "home" which is inside the database in the table "templates" where ID="1".

Also inside this "home" template in database, I need to have a lot of html, but also need to have some PHP functions.
I have spent long time to do so the database template can include PHP codes, such as a code which takes the template called "header" or "footer" inside the database. And put that on the page..

Hope someone would be able to help with me this, as I have tried so many things now.

I am willing to pay the one which makes this working.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 15th, 2011, 6:37 am

  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post September 15th, 2011, 7:39 pm

Are you talking about something along the lines of this tutorial but is run through the MySQL database?

Also, why are you trying to use the MySQL database for templates? Can't you do it from files?
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Fanatic
  • Born
  • Born
  • No Avatar
  • Joined: Sep 15, 2011
  • Posts: 3
  • Status: Offline

Post September 15th, 2011, 10:05 pm

Bogey wrote:
Are you talking about something along the lines of this tutorial but is run through the MySQL database?

Also, why are you trying to use the MySQL database for templates? Can't you do it from files?


Yes, like that, but the reason I want it to come from the database is because I need to make a Admin Panel which can edit in the template.
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post September 15th, 2011, 10:18 pm

If you store PHP code in a database and need to have it executed check out eval.

However you should not do this.
#define NULL (::rand() % 2)
  • Fanatic
  • Born
  • Born
  • No Avatar
  • Joined: Sep 15, 2011
  • Posts: 3
  • Status: Offline

Post September 15th, 2011, 11:15 pm

SpooF wrote:
If you store PHP code in a database and need to have it executed check out [url]eval[/url].

However you [url]should not do this[/url].


But I am pretty new to this?
Can anyone help me.

I am willing to pay a small amount.
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post September 16th, 2011, 4:20 pm

You can do that through the file_get_contents and file_put_contents.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Mustafa_Aslan
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Oct 01, 2011
  • Posts: 38
  • Status: Offline

Post October 3rd, 2011, 4:22 pm

Why don't you use template engine like smarty? address is smarty .net

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 124 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.