mrjameer
09-20-2006, 06:07 PM
hi,
i want to store css template which has header,left navbar,center,right navbar,footer in mysql db.iam using like this
1..i will store a css template in db
2..retrieve it from db and assigned its value to some textarea for updations
3..update content
$header='<style type ="text/css">
#header{
background-color:white;
color:#009900;
border-style:solid;
border-width:3px;
height:200px;
width:300px;
padding:5px;}</style><div id="header">WELCOME</div>';
if i use this type everything is displayed correctly but when updating it iam getting error
is it the correct way to store in db or i have to use
$header='<link rel="stylesheet" type="text/css" href="abc.css"> <div id="header">WELCOME</div>';
mrjameer
i want to store css template which has header,left navbar,center,right navbar,footer in mysql db.iam using like this
1..i will store a css template in db
2..retrieve it from db and assigned its value to some textarea for updations
3..update content
$header='<style type ="text/css">
#header{
background-color:white;
color:#009900;
border-style:solid;
border-width:3px;
height:200px;
width:300px;
padding:5px;}</style><div id="header">WELCOME</div>';
if i use this type everything is displayed correctly but when updating it iam getting error
is it the correct way to store in db or i have to use
$header='<link rel="stylesheet" type="text/css" href="abc.css"> <div id="header">WELCOME</div>';
mrjameer