Hi zusammen!
Ich versuche verzweifelt, in TS eine Variable an ein select-Statement zu übergeben.
Es sollen Bilder ausgegeben werden, "title" > Variable (in diesem Fall das aktuelle title-Feld)
Mit einer Konstanten geht es wie gewünscht:
temp.BILDER = COA_INT
temp.BILDER {
20 = CONTENT
20 {
table = pages
select {
pidInList = 24
field = media
where = title> 'M'
max = 12
orderBy = title
}
....
}
Aber wie bringe ich eine Variable hinein?
So jedenfalls nicht:
myVar = TEXT
myVar.data = page : title
temp.BILDER = COA_INT
temp.BILDER {
20 = CONTENT
20 {
table = pages
select {
pidInList = 24
field = media
where = title> {$myVar.data}
max = 12
orderBy = title
}
....
}
Fehlermeldung: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '} AND pages.deleted=0 AND pages.hidden=0 AND pages.starttime<=1280620260 AND (p' at line 1
lastBuiltQuery: SELECT * FROM pages WHERE pages.pid IN (24) AND title > {$myVar.data} AND pages.deleted=0 ...
Habe statt {$myVar.data} alles probiert was mir eingefallen ist. Web-Suchen waren völlig ergebnislos. Mache ich wohl einen grundsätzlichen Fehler?
Best, Stefan