|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 01/09/2009 at 01:41AM PST, ID: 24037836 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: |
<?PHP
require_once("dbCon/dbcon.php");
try {
/* query the database */
$db = getCon();
/* Parse XML from http://www.medicalnewstoday.com */
$RSS_DOC = simpleXML_load_file('http://www.medicalnewstoday.com/rss/smoking.xml');
/* Get title, link, managing editor, and copyright from the document */
$rss_title = $RSS_DOC->channel->title;
$rss_link = $RSS_DOC->channel->link;
$rss_editor = $RSS_DOC->channel->managingEditor;
$rss_copyright = $RSS_DOC->channel->copyright;
//Loop through each item in the RSS document
foreach($RSS_DOC->channel->item as $RSSitem) {
// modify string from articles //
$friendly = str_replace(array('.php', 'articles/'), array('', 'printerfriendlynews.php?newsid='), $RSSitem->link);
// form //
$page->addToContent("<form action='rssNeuroScience.php' method='post' />");
//The variable $RSSitem will hold a different item for each loop
$page->addToContent("<b><a href='$friendly'>$RSSitem->title</a></b><br /><br />");
$page->addToContent("<b>$RSSitem->pubDate</b><br /><br />");
$page->addToContent("$RSSitem->description<br /><br />");
$page->addToContent("<input name='cBox' type='checkbox' value='cBox'/><br />");
//$page->addaddToContent("-------------------------------------------------------------<br />");
}
$page->addToContent("<input type='submit' value='submit'/></form>");
// End of form //
?>
|
Advertisement