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
...................
?>
SomeOne help--> Just a tip! I need to do that for school!
Moderator: General Moderators
-
christalix
- Forum Newbie
- Posts: 6
- Joined: Tue Oct 13, 2009 3:50 pm
- 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!
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!
Drop down theme/template selector in PHP/MySQL.
I have the solution now. Thanks anyway:)
I have the solution now. Thanks anyway:)