Ich habe einen RSS-Feed, der aus irgendeinem Grund meine PHP-Variablen nicht anzeigt. Wenn das Futter zurückgegeben wird es kommt zurück mit den rohen Tags zum Beispiel wird der Titel statt Zeitplan Zeitplan $ yesterdayd sein - April Irgendwelche IdeenRSS Feed zeigt keine PHP-Variablen an
<?PHP
include("../config.php");
#// Timetable Clearup Variabls
$yesterday = strtotime('yesterday');
$yesterdow = date('l',$yesterday);
$order = "SELECT * FROM timetable WHERE day = '$yesterdow' ORDER BY time";
$result = mysql_query($order);
$yesterdayd = date('F jS, Y', time()-86400);
//SET XML HEADER
header('Content-type: text/xml');
//CONSTRUCT RSS FEED HEADERS
$output = '<rss version="2.0">';
$output .= '<channel>';
$output .= '<title>Timetable - $yesterdayd </title>';
$output .= '<description>Timetable.</description>';
$output .= '<link>http://site.com/</link>';
### $output .= '<copyright>Your copyright details</copyright>';
//BODY OF RSS FEED
$output .= '<item>';
$output .= '<title>Timetable for $yesterdayd</title>';
$output .= '<description>" . htmlspecialchars($row['username']) . "</td><td>" . htmlspecialchars($row['time']) . "</description>';
$output .= '<link>Link to Item</link>';
$output .= '<pubDate>Date Published</pubDate>';
$output .= '</item> ';
//CLOSE RSS FEED
$output .= '</channel>';
$output .= '</rss>';
//SEND COMPLETE RSS FEED TO BROWSER
echo($output);
?>
Dienstag, der 10.?
'$ output = ' description> "'...'..".';' - hier haben Sie einen Mismatch Anführungszeichen ('' 'vs.' "') ... –
glglgl