Page 1 of 1

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

Posted: Wed Oct 14, 2009 3:35 am
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
...................

?>

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

Posted: Wed Oct 14, 2009 11:12 am
by markusn00b
Um... pull the template from the database based on the tempid? Your question is very vague.

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

Posted: Wed Oct 14, 2009 1:54 pm
by christalix
Drop down theme/template selector in PHP/MySQL.

I have the solution now. Thanks anyway:)