Katy,
Glad you got it working to your satisfaction. The only thing I would suggest changing is the following:
PHP Code:
if(isset($_GET['sort']))
{
$sort = $_GET['sort'];
}
else
{
$sort = 'date DESC';
}
To:
PHP Code:
if ( !empty ( $_GET['sort'] ) )
{
$sort = $_GET['sort'];
}
else
{
$sort = 'date DESC';
}
Its better to check using empty() rather than isset(). Checking a value of a variable using isset can be misleading. What if the variable is set, yet has no value? Your query will error. Just a suggestion.
Bookmarks