PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
my articles database referred below has php code snippets which I want to retrieve using the mysql_query string and append to my code to complete.
Can somebody correct my incorrect echo command (or printf) on line8 below to achieve this.
<?php
require_once("../rss/rsslib.php");
include ('../admin/config.php');
// fetch the code from articles table in articles db based on the ID
$result = mysql_query("SELECT article.ArticleID, articles.snippet FROM articles WHERE ArticleID='2' ", $dblink);
//now add the retrieved code snippets to my php string to complete the php code
echo $result,"snippet");
?>
jaoudestdio- to answer your question..I downloaded and ran it on an old Apache1, Php4 instance and am re-using the code for a new app. - this time on Apache2, Php5