Forum - jschmidt-systemberatung.de

× php-RGraph and php-rgraph Joomla Content Plugin

php code für Variablenübergabe

More
5 years 4 months ago #1144 by jochen
Replied by jochen on topic php code für Variablenübergabe
hi,
Joomla scheint den php-code zu löschen - was passiert den mit
<?php $test="20"; echo $test; ?>

das sql kann man auch so kodieren:
sql="SELECT DATE_FORMAT(DATE_ADD(Zeit, INTERVAL 2 HOUR), '%H:%i') AS Zeit, temp/10 AS temp, dew/10 AS dew FROM Wetterdaten.weathercloud WHERE
Zeit > #datesql#'"

(#datesql# ist das jeweilige heutige datum

Please Log in or Create an account to join the conversation.

  • Uwe Klaus
  • Topic Author
  • Visitor
  • Visitor
5 years 4 months ago #1145 by Uwe Klaus
Replied by Uwe Klaus on topic php code für Variablenübergabe
Zunächst danke für den Tip.

zum scripting:

ausserhalb von {rgraph...} wird es ganz normal bearbeitet und ausgegeben.
Innerhalb von {rgraph...textAngle="<?php $test=20; echo $test; ?>" } passiert nichts. weder die Zahlen warden im Winkel dargestellt noch wird 20 irgendwo ausgegeben..

Ist auf dem link von gestern noch zu sehen ...

p.S.: habe auf Joomla 3.9.1 upgedated, keine Veränderung.

Please Log in or Create an account to join the conversation.

  • Uwe Klaus
  • Topic Author
  • Visitor
  • Visitor
5 years 4 months ago #1146 by Uwe Klaus
Replied by Uwe Klaus on topic php code für Variablenübergabe
Habe es mit #datesql# ausprobiert. das geht in meinem Fall nicht, da #datesql# scheinbar nur das datum enthält und nicht die Zeit (00:00:00).
in meiner Datenbank wird die Zeit als Datum+Zeit gespeichert. Die Zeitzone ist UTC.

Es wird die gesamte Datenbank geladen und nicht nur die ab 0 Uhr UTC.

schade

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #1147 by jochen
Replied by jochen on topic php code für Variablenübergabe
hi,
ich habe mit directPHP getestet und nun auch das Problem gefunden. Es liegt an der Reihenfolge der beiden content Plugins. Zuerst muss directPHP aufgerufen werden - dann php-rgraph. Einfach die Reihenfolge (odering) ändern, dann sollte es funktionieren (bei mir läuft es so) 

Please Log in or Create an account to join the conversation.

  • Uwe Klaus
  • Topic Author
  • Visitor
  • Visitor
5 years 4 months ago #1148 by Uwe Klaus
Replied by Uwe Klaus on topic php code für Variablenübergabe
Super  !!!!!

Funktioniert 1A.

Vielen Herzlichen Dank

Please Log in or Create an account to join the conversation.

Time to create page: 0.237 seconds
Powered by Kunena Forum
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.