View Single Post
Old 11-23-2003, 06:36 AM  
wsjb78
Confirmed User
 
Join Date: Jun 2002
Location: Cyberspace
Posts: 594
Quote:
Originally posted by pornanza
SELECT title, url FROM links ORDER BY date DESC;

ryan
And for entering the date:

PHP Code:
$time_now mkdate();
$sql "INSERT INTO link SET title='$title', url='$url', date='$time_now'";
if(
mysql_query($sql) {
  echo 
"New link successfully added";
} else {
  echo 
"Could not add new link";

wsjb78 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote