Jump to content

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...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.