Solved

PHP printing CSS error

Posted on 2013-01-22
2
204 Views
Last Modified: 2013-01-22
Hi all,

I need to print the variable $remind_days here but at the moment in this block it thinks it's text. Could someone tell me how to fix this.

<?php
if ( $remind_status == 1 )
	{
		echo '<br><span style="padding:0 0 0 30px;
border-left:#0066cc 12px solid;
background-color:#3FA9F5;
padding:8px;
color:#FFF;
-webkit-border-radius: 0px 6px 6px 0px;
border-radius: 0px 6px 6px 0px;margin-left:30px;">You have an active reminder for every $remind_days days of inactivity!</span>';
	}
?>

Open in new window


Thanks so much,

D
0
Comment
Question by:TLN_CANADA
  • 2
2 Comments
 
LVL 7

Accepted Solution

by:
rgranlund earned 500 total points
ID: 38807494
You Concantonate:
<?php
if ( $remind_status == 1 )
      {
            echo '<br><span style="padding:0 0 0 30px;
border-left:#0066cc 12px solid;
background-color:#3FA9F5;
padding:8px;
color:#FFF;
-webkit-border-radius: 0px 6px 6px 0px;
border-radius: 0px 6px 6px 0px;margin-left:30px;">You have an active reminder for every' . $remind_days. ' days of inactivity!</span>';
      }
?>
0
 
LVL 7

Expert Comment

by:rgranlund
ID: 38807498
<?php
if ( $remind_status == 1 )
      {
            echo '<br><span style="padding:0 0 0 30px;
border-left:#0066cc 12px solid;
background-color:#3FA9F5;
padding:8px;
color:#FFF;
-webkit-border-radius: 0px 6px 6px 0px;
border-radius: 0px 6px 6px 0px;margin-left:30px;">You have an active reminder for every' . $remind_days. ' days of inactivity!</span>';
      }
?>

Open in new window

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now