Skip to content
Permalink
Browse files

Sync with the original version (use id instead of timestamp)

git-svn-id: https://svn.macports.org/repository/macports/trunk/www@4546 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Matt Anton
Matt Anton committed Jan 8, 2004
1 parent 82f1162 commit 2681e83d68a9e4cfca5be0ff617622c78385242b
Showing with 4 additions and 4 deletions.
  1. +4 −4 fr/includes/functions.inc
@@ -1,6 +1,6 @@
<?php

# $Id: functions.inc,v 1.3 2003/11/25 02:35:05 matt Exp $
# $Id: functions.inc,v 1.4 2004/01/08 22:01:04 matt Exp $
# Copyright (c) 2003, OpenDarwin

######################################################################
@@ -18,7 +18,7 @@ mysql_select_db($db);
function create_rss() {
global $DOCUMENT_ROOT, $connect;

$query = "SELECT id, title, news FROM headlines ORDER BY timestamp DESC LIMIT 10";
$query = "SELECT id, title, news FROM headlines ORDER BY id DESC LIMIT 10";
$result = mysql_query($query) or die("Error: $query.");
if(!$result) {
die("Error: $result.");
@@ -76,7 +76,7 @@ function create_rss() {
function print_headlines() {
global $connect;

$query = "SELECT id, DATE_FORMAT(timestamp, '%e %b %Y, %l:%i %p') AS f_timestamp, title, news FROM headlines ORDER BY timestamp DESC LIMIT 5";
$query = "SELECT id, DATE_FORMAT(timestamp, '%e %b %Y, %l:%i %p') AS f_timestamp, title, news FROM headlines ORDER BY id DESC LIMIT 5";
$result = mysql_query($query) or die("Error: $query.");
if(!$result) {
die("Error: $result.");
@@ -238,7 +238,7 @@ function print_all_headlines() {

echo "<p>Voici ci-dessous la liste de toutes les d&eacute;p&ecirc;ches existantes. Elles peuvent &ecirc;tre visualis&eacute;es, &eacute;dit&eacute;es, ou effac&eacute;es depuis cette interface. Vous pouvez &eacute;galement <a href=\"add.php\">ajouter une d&eacute;p&ecirc;che</a>.</p>\n\n";

$query = "SELECT id, title, DATE_FORMAT(timestamp, '%e %b %Y, %l:%i %p') AS f_timestamp FROM headlines ORDER BY timestamp DESC";
$query = "SELECT id, title, DATE_FORMAT(timestamp, '%e %b %Y, %l:%i %p') AS f_timestamp FROM headlines ORDER BY id DESC";
$result = mysql_query($query) or die("Error: $query.");
if(!$result) {
die("Error: $result.");

0 comments on commit 2681e83

Please sign in to comment.
You can’t perform that action at this time.