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 "record number: ".$rec_num. "";
record number: ".$rec_num. "
You have to end ' single quote after the background-color style.
'
background-color