Jump to content


This topic is now archived and is closed to further replies.


color pallet in php

Recommended Posts

I was trying to make a admin color pallet today you got any idears off an easy way cheers.

the code is hard to code as you can see the time its all done i have no fingers please help cheers.
<?php include("test.php")?>

<table  width="400" height="200" align="center">
<td align="center">
<h1><p class="dotted">web site test</p></h1>


$query="select * from color_pallet";



<style type="text/css">
body {background-color: <?php echo $record['bground']; ?>}
h1 {color: <?php echo $record['h1']; ?>}
h2 {color:  <?php echo $record['h2']; ?>}
p {color: <?php echo $record['p']; ?>}
p.dotted {border-style: dotted}
TABLE { background: <?phpecho $record['table_bground'];?>; border-collapse: collapse }
TD{ background: <?php echo $record['table_td_color'];?>; border: double black }

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.