d8888b. . d88b. D8B DB DB DD d88888b DB db
The ' 8D. 8P Y8. 888o, 8P ' ' 8b D8 '
88v8o 88,8p 88ooooo ' 8bd8 '
The V8o88 8b 88~~~~~ 88
8D ' 8b D8 ' V888 88 ' 88. 88.88
y8888d ' y88p ' VP v8p YP YD y88888p YP
This script is 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)) {
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.