comparison index.php @ 47:315afeb47e52

myrss: fix handling embedded HTML tags and special characters; add myrss_test_feed.py
author paulo
date Wed, 13 Feb 2013 00:11:58 -0800
parents 561c0b0f3234
children 92e7bc3c5755
comparison
equal deleted inserted replaced
0:157f599474b5 1:3fd1e35892c8
35 echo '<A HREF="'.$row['URL'].'">'.$row['Title'].'</A>'; 35 echo '<A HREF="'.$row['URL'].'">'.$row['Title'].'</A>';
36 echo '</DT>'."\n"; 36 echo '</DT>'."\n";
37 echo '<DD>'; 37 echo '<DD>';
38 echo '<DIV CLASS="index_date">'; 38 echo '<DIV CLASS="index_date">';
39 echo 'First added: '.$row['FirstMod'].' '.'<BR>'; 39 echo 'First added: '.$row['FirstMod'].' '.'<BR>';
40 echo 'Last modified: '.$row['LastMod']; 40 if (($row['LastMod'] != '') && ($row['LastMod'] != $row['FirstMod']))
41 echo 'Last modified: '.$row['LastMod'];
41 echo '</DIV>'; 42 echo '</DIV>';
42 echo '</DD>'."\n"; 43 echo '</DD>'."\n";
43 } 44 }
44 45
45 mysql_free_result($results); 46 mysql_free_result($results);