Note that there are some explanatory texts on larger screens.

plurals
  1. PORSS Feed not displaying PHP variables
    text
    copied!<p>I have an RSS feed which for some reason is not showing my PHP variables. When the feed is returned it comes back with the raw tags for example the title will be Timetable $yesterdayd instead of Timetable - Tuesday 10th April</p> <pre><code>&lt;?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 = '&lt;rss version="2.0"&gt;'; $output .= '&lt;channel&gt;'; $output .= '&lt;title&gt;Timetable - $yesterdayd &lt;/title&gt;'; $output .= '&lt;description&gt;Timetable.&lt;/description&gt;'; $output .= '&lt;link&gt;http://site.com/&lt;/link&gt;'; ### $output .= '&lt;copyright&gt;Your copyright details&lt;/copyright&gt;'; //BODY OF RSS FEED $output .= '&lt;item&gt;'; $output .= '&lt;title&gt;Timetable for $yesterdayd&lt;/title&gt;'; $output .= '&lt;description&gt;" . htmlspecialchars($row['username']) . "&lt;/td&gt;&lt;td&gt;" . htmlspecialchars($row['time']) . "&lt;/description&gt;'; $output .= '&lt;link&gt;Link to Item&lt;/link&gt;'; $output .= '&lt;pubDate&gt;Date Published&lt;/pubDate&gt;'; $output .= '&lt;/item&gt; '; //CLOSE RSS FEED $output .= '&lt;/channel&gt;'; $output .= '&lt;/rss&gt;'; //SEND COMPLETE RSS FEED TO BROWSER echo($output); ?&gt; </code></pre> <p>Any ideas?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload