Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9321043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:46:38+00:00 2026-06-19T03:46:38+00:00

Before style=style=color: ‘ . $rx_event_colors . ‘ I want to add the $ima variable.

  • 0

Before style=”style=”color: ‘ . $rx_event_colors . ‘” I want to add the $ima variable. it’s just a variable with an image inside of the string. Additionally, if you think i would benefit from just adding the

 if(!empty($ins_event))
            {
            echo "<tr><td>&nbsp; <a href='". matry::here(array('event_id'=>$ins_event['id'])) . "'" . 
            ( $ins_event['status'] == 2 ? ' style="color: ' . $rx_event_colors . '">Completed Insurance Event' : '>Active Insurance Event') . "</a></td></tr>";     

            }

I’ve tried:

? ' $ima, style="style="color: ' . $rx_event_colors . '"
                      style="style="color: ' . $ima, $rx_event_colors . '"
                      style="style="color: ' . ($ima), $rx_event_colors . '"
                      style="style="color: ' . ($ima), ($rx_event_colors) . '"

with no avail.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T03:46:39+00:00Added an answer on June 19, 2026 at 3:46 am

    I’m assuming $ima is a string. To concatenate strings, use the “.”

    So in the first part of your ternary, if you’d like to add $ima, simply do this:

    ' style="color: ' . $ima . $rx_event_colors . '">Completed Insurance Event'
    

    However, I’m confused when you say “[$ima] just a variable with an image inside of the string”. Does $ima contain the path to the image itself? If so, it belongs in the SRC attribute of the img tag, not inside the STYLE attribute.

    UPDATE:

    Because $ima contained the entire img tag, it doesn’t belong in the style atrribute. See:

    ' style="color: ' . $rx_event_colors . '">' . $ima . 'Completed Insurance Event'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

dataGridView1.Rows[x1].Cells[y1].Style.BackColor = System.Drawing.Color.Red; System.Threading.Thread.Sleep(1000); İ want to wait one second before printing my grid
I want to preview an image before uploading it to the server. I have
before I start I want to point out that I tagged this question as
Before I ask my question, I want to mention that I am only today
Before I start, I want to make it clear that my code is working
I know this question asked before but any answer helped me. I want to
I want to get rid of the white color during the short period when
How do I separately style the text inside the search field (on the right)?
I know this question has been asked so many times before. But I just
<body style=background-color: paleturquoise> <h2 style=color: red>Duke's soccer League: Home Page<br/></h2> <ul style=list-style-type: circle> <li

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.