[TYPO3-german] Variable aus URL für PHP-Script
Manfred Hungerland
mobil at csb86.ch
Tue Aug 28 09:47:23 CEST 2007
Basti Baumann schrieb:
>
> Hi Manfred,
>
> du musst ja auch die richtige Variable auslesen:
>
> $id_value = t3lib_div::_GP('id_testimony');
>
> Grüße
> Basti
Du hast natürlich recht.
<?php
include('fileadmin/template/wfqbe/rtfclass.php');
$id_value = t3lib_div::_GP('id_testimony');
$sql="SELECT * FROM TESTIMONY WHERE (TESTIMONY.ID = $id_value)";
$result= mysql_query($sql) or die(mysql_error());
$testimony = mysql_fetch_array($result);
$r = new rtf ($testimony['TESTIMONY']);
$r->output("html");
$r->parse();
if( count( $r->err) == 0) { // no errors detected
echo $r->out;
}
?>
Damit erhalte ich leider die 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 ')' at line 1
eine Idee? Bin echt dankbar für jede Hilfe.
Manfred
More information about the TYPO3-german
mailing list