<?xml version="1.0"?> <?php header ("content-type: text/xml"); mysql_connect("tornado","mwg400","48458749") or die ("Kan niet connecten."); now = mktime(); now); echo " <rss version='2.0'> <channel> <description/> <link>www.few.vu.nl/~ystaal/mmc/getrss.php</link> <title>MMC RSS Feed [".ucwords(</title> "; if(_GET['content_id']){ _GET['content_id']); printXMLContent(_GET['category']){ _GET['category']." = 1 ORDER BY content_id DESC"; if(size = size = 100; } sql); row = mysql_fetch_array (row['content_id']; if(size){ row['content_id']); // echo "<size>".aantal."</size>\n"; for(i < i++){ printXMLContent(i]); } } echo "</channel> </rss>"; function printXMLContent(<item>\n"; echo " <title>".content_row['content_title']."</title> <link>www.few.vu.nl/~ystaal/mmc/getmooicontent.php?content_id=".$content_row['content_id']."</link> <description>".</description> "; echo "</item>\n"; } function vindContent(content_id){ date = date("d-m-Y, H:i:s",result = mysql_query("SELECT * FROM content WHERE content_id = ".content_row = mysql_fetch_array (categoryString = result2 = mysql_query("SELECT * FROM content_matrix WHERE content_id = ".row2 = mysql_fetch_array (row2 as value){ if(key) && (categoryArray[] = keywordString = result2 = mysql_query("SELECT keyword_id FROM content_keywords WHERE content_id = ".row2 = mysql_fetch_array (result3 = mysql_query("SELECT keyword_name FROM keywords WHERE keyword_id = ".row3 = mysql_fetch_array (keywordArray[] = content_row['content_binary'] = strip(content_row['derived_keywordstring'] = implode(", ", content_row['derived_categorystring'] = implode(", ", content_row; } /* else { Tellertje en loop om de tabellen te tonen. echo "<fieldset><legend><b>List of all tables in the database</b></legend>"; i < mysql_num_rows(t_name[tabellen, <a target='goalWin' href='getdb.php?table=".t_name[t_name[</a><br />\n"; i++; } echo "</fieldset>"; mysql_free_result (_GET['table']){ ?> <hr /> Created for MMC2007 <div> <img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> </div> </body> </html> <?php } */ function strip(text = str_replace("–", "-",text = str_replace("â", "NULL",text = str_replace("Â", "NULL",text; } ?>
(C) A. Eliƫns 2/9/2007
You may not copy or print any of this material without explicit permission of the author or the publisher.