Jump to content


Photo

color pallet in php


  • Please log in to reply
No replies to this topic

#1 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 17 August 2006 - 03:17 PM

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")?>
<html>
<head>

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

<?php
$db=mysql_connect("localhost","xx","xx");
mysql_select_db("color",$db);

$query="select * from color_pallet";

$result=mysql_query($query);

while($record=mysql_fetch_assoc($result)){
?>

<html>
<head>
<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 }
</style>
</head>
</html>
<?}?>

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users