0

I get above error on my php code. I get the error for the following line.

 echo '<tr><td style="width:400px;padding:5px;"></td><td style="width:300px;padding:5px;"><img src="'.$image_folder.$value->$value->prfil_img .'" /></td></tr>';

I know I haven't use strings properly here. Either double quotation or single quotation have not been used properly. However, I can't figure it out.

Can anybody help me?

1
  • 1
    Your quotations look fine. Commented Jul 7, 2013 at 4:39

1 Answer 1

1

This looks wrong:

$image_folder.$value->$value->prfil_img

You probably meant:

$image_folder . $value->prfil_img
Sign up to request clarification or add additional context in comments.

2 Comments

+1 The second $value is being converted to a string so it can be interpreted as a variable property, Hence the error
thanks lot, without your help I won't figure this out. I used to always look in to quatations when I get this kind of error. thanks for so too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.