VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Coding Central => Topic started by: Twister1611 on August 28, 2015, 06:16:58 AM

Title: PHP Parse error: syntax error, unexpected '='
Post by: Twister1611 on August 28, 2015, 06:16:58 AM
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="" />
Title: Re: PHP Parse error: syntax error, unexpected '='
Post by: Studio 42 on August 28, 2015, 10:20:59 AM
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
Title: Re: PHP Parse error: syntax error, unexpected '='
Post by: Twister1611 on August 28, 2015, 11:06:39 AM
Patrick,

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

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