Jump to content

How do I wrap css around echo code?


bgbs

Recommended Posts

I'm trying to figure out how I would put css code in echo statement.

When I tried echo "<div>Office Phone: $vuser->phone_office $vuser->phone_ext<img src='images/icon_verified.gif' alt='verified logo' width='63' height='16'></div>";  I got syntax error.

 

Original code below

 

if($office_phone_verified == "Yes") {
			echo "Office Phone: $vuser->phone_office $vuser->phone_ext<img src='images/icon_verified.gif' alt='verified logo' width='63' height='16'>";
		}

 

Anybody know?

Link to comment
https://forums.phpfreaks.com/topic/174363-how-do-i-wrap-css-around-echo-code/
Share on other sites

echo "<div>Office Phone: $vuser->phone_office $vuser->phone_ext<img src='images/icon_verified.gif' alt='verified logo' width='63' height='16'></div>"; 

 

what syntax error did you get? this code should echo perfectly fine...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.