Hi everybody, I’m a newbie in modx and i like the easy use of it, but:
I have a problem to read the selfgenerated URL to use is in my SQL
First I created a TV with a DATAGRID
@SELECT
CONCAT("<a href='./index.php?id=45&player_id=",t1.player_id,"' title='Detail'>",t1.prename, " ", t1.name,"</a>") as NAME from...
This is what i did:
1. Format the column as link ( the link is very well created and refers to my Page with the ID=45 and the player_id of the selected row )
2. I created a SQL via TV which need the PLAYER_ID as WHERE-Parameter and put this TV to my Content-Area on Page with the ID 45
Before i use ModX i coded:
$player_id=$_GET["player_id"];
and passes the $player_id to my SQL:
...WHERE player_id = $player_id;
How can i do this in Modx?
How can i read the given parameter?
How can i pass the parameter to my SQL Statement?
I read a lot of Documentation and try many different ways to solve my problem, but nothing worked.
It must be simple but i don’t know how...
Thank you for every hint, tipp,...