add a "." after echoing the $row['date'] variable:
PHP Code:
<?php
// query db
$sql = mysql_query ("SELECT listingid, Title, Date, DATE_FORMAT(Date, '%d-%m-%Y') as Date FROM `track-listing` ORDER BY Date DESC");
// echo linked result from db
while ($row = mysql_fetch_assoc($sql)){
echo "<a href='track-listings.php?listingid={$row['listingid']}'>" . ucwords(strtolower($row['Title'])) . ucwords(strtolower($row['Date'])) . "</a><br>";
}
?>
This concatenates the string, you must form an echo like so:
PHP Code:
echo "Hello " . $user . "!";
So it knows where that variable starts and ends and adds any extra string parts to the beginning and end.
You almost had it right
Bookmarks