Posted: Wed Oct 03, 2007 7:04 am
My auctions are able to be seen by users (not bid on) after they are closed. Is there a way to make it so they are invisible to users (but not admins) once they are closed?
Put a face on your database
http://xataface.com/forum/
function block__result_list(){
if ( isAdmin() ) return PEAR::raiseError("Just show the default list");
$app =& Dataface_Application::getInstance();
$query =& $app->getQuery();
$products = df_get_records_array('products', $query);
df_display(array('products'=>&$products), 'public_product_list.html');
}
$query['close_date'] = '>';
function block__result_list(){
if ( isAdmin() ) return PEAR::raiseError("Just show the default list");
$app =& Dataface_Application::getInstance();
$query =& $app->getQuery();
$query['close_date'] = '>';
$products = df_get_records_array('products', $query);
df_display(array('products'=>&$products), 'public_product_list.html');
}
$query['close_date'] = '>';
$query['close_date'] = '=';