i am trying to apply the background color in echo using an inline style but it is not applying background color in however changes only the text color. i want to change backgrou
Try like
echo "<p style='color:orange;background-color:red;'>record number: ".$rec_num. "</p><br>";
You have to end '
single quote after the background-color
style.
Or you can ajust only the print lines with styles
print "<p style='color: red;border: 1px solid black;height:20px;box-shadow: 1px 1px 7px;'>"."message!: ".$db_field['TEXTAREA1'] . "<br>";
after this i got an fancy box around the text =) i love boxes in many ways
so no echo where placed only print {}
function
Many thanx and good luck
ps
['textarea1']
<-- is assigned to database so it reads only that table
try
echo "<div style='background-color:red;'><p style='color:orange'>"."record number: ".$rec_num. "</p></div>"."<br>";