News:

Looking for documentation? Take a look on our wiki

Main Menu

PHP Parse error: syntax error, unexpected '='

Started by Twister1611, August 28, 2015, 06:16:58 AM

Previous topic - Next topic

Twister1611

Just got an error from this line. I don't know how to fix it. Did I lack something in this code?

<img src="<?php echo frontline_get_image(w=700&amp;h=388&amp); ?>" alt="" />

Studio 42

Hi,
The line can be correct, but the function can be missing.
YOu need to include the file having the function frontline_get_image(
The second problem, is that you don't have brakets on the call
<img src="<?php echo frontline_get_image(w=700&amp;h=388&amp); ?>" alt="" />
should be :
<img src="<?php echo frontline_get_image("w=700&amp;h=388&amp"); ?>" alt="" />
But i don't know your function arguments, i cannot help your more on this.

Greetings,
Patrick

Twister1611

Patrick,

A billion thanks man you truly saved me!!!
You just nailed it man.

Thank you for your great help. God Bless you more...