SomeOne help--> Just a tip! I need to do that for school!

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
christalix
Forum Newbie
Posts: 6
Joined: Tue Oct 13, 2009 3:50 pm

SomeOne help--> Just a tip! I need to do that for school!

Post by christalix »

i have inserted some templates in my database.

Now, on my blog, l will like users to choose their own background templates to the topic they will write.
My problem is, how can the script fetch the template from the database and use the choosen template.
the database is called "myblod_db" and the all the templates are stored in the same table on "templates" wich corresponds to tempid.
Could any one give me a tip'?
Thank you


so this is my html/php dropdown box.

<html>
<body>

<p>Please write down your blog topic and choose from the following free templates.</p>
<input type="text" name="firstname" />
<p>templates<br>
<select name="template">
<option selected="selected" value="cham">chamHop</option>
<option selected="selected" value="cowb">cowB</option>
<option selected="selected" value="ants">Ants</option>
<option selected="selected" value="moon">MoonRaider</option>

</select>
</p>
</body>
</html>
<?php
...................

?>
User avatar
markusn00b
Forum Contributor
Posts: 298
Joined: Sat Oct 20, 2007 2:16 pm
Location: York, England

Re: SomeOne help--> Just a tip! I need to do that for school!

Post by markusn00b »

Um... pull the template from the database based on the tempid? Your question is very vague.
christalix
Forum Newbie
Posts: 6
Joined: Tue Oct 13, 2009 3:50 pm

Re: SomeOne help--> Just a tip! I need to do that for school!

Post by christalix »

Drop down theme/template selector in PHP/MySQL.

I have the solution now. Thanks anyway:)
Post Reply