You need to be logged in to post in the forum - Log In
An active JCE Pro Subscription is required to post in the forum - Buy a Subscription
- Support
- Forum
- JCE Editor
- my is replaced by !--
Support is currently Online
Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
From 09:00 To 17:00 Europe/London (BST)
It is not possible to execute PHP code in a Joomla article without the help of a special extension, like Regular Labs Sourcerer - https://www.regularlabs.com/extensions/sourcerer
Please post a screenshot of the code you are attempting to add to the editor.
Please post a screenshot of the code you are attempting to add to the editor.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
I downloaded Sourcerer. Don't really understand how it works though.
the code I am trying to add is this one:
the code I am trying to add is this one:
<?php
$xml = new SimpleXMLElement('http://handballstats.se/club/xml/22/table_2018_1800201.xml',0,true);
//eller
$xml = simplexml_load_file('http://handballstats.se/club/xml/22/table_2018_1800201.xml');
foreach($xml->team as $team) {
//läs av attribut
$attr = (string) $team['rank'];
//eller
$attr = "$team[rank]";
//läs av textinnehåll
$text = (string) $team->scoreplus;
//eller
$text = "{$team->scoreplus}";
?>
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!