Jump to content

What is wrong with this?


Padgoi

Recommended Posts

I am getting a PHP error:

 

echo "<a href=\"#" onclick=\"toggle_visibility('foo');">";
echo "<img src=\"http://forum.wootability.com/CE.png">";
echo "</a>";

echo "<div id="foo">";
                        $row['ratings'] = $this->ipsclass->compiled_templates['skin_topic']->ratings( $row['pid'] , $row['author_id'] , $ratingshtml );
echo "</div>"; 

Link to comment
https://forums.phpfreaks.com/topic/127762-what-is-wrong-with-this/
Share on other sites

You put a \ in front of 2 " and not all of the rest inside your echo. Should be:

 

echo "<a href=\"#\" onclick=\"toggle_visibility('foo');\">";
echo "<img src=\"http://forum.wootability.com/CE.png\">";
echo "</a>";

echo "<div id=\"foo\">";
                        $row['ratings'] = $this->ipsclass->compiled_templates['skin_topic']->ratings( $row['pid'] , $row['author_id'] , $ratingshtml );
echo "</div>"; 

Archived

This topic is now archived and is closed to further replies.

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