This script was made by Oscar Rylin (oscar@mgon.com) while learning PHP w/
MySQL connections.
What the script Does:
* Provides an easy way to Read news from a MySQL database
* Prints it out in a nice HTML format which is customizable
* Provides a secure interface (user/password validation through a MySQL db)
* Updating news, deleting and adding users and lots of other stuff
*/
include "dbconn.php"; // This is http://zend.com/codex.php?id=35&single=1
include "settings.php"; // The settings file
?>
$sql = new CDBMySQL($dbHost, $dbUser, $dbPass, $dbName);
if ($start) {
$sql -> Query ("SELECT * FROM news WHERE id < ". ($row[Total] - $start) . " ORDER BY id DESC");
} else {
$sql -> Query ("SELECT * FROM news ORDER BY id DESC");
}
while (($sql -> ReadRow()) && ($tmpDL < $newsDL)) {