SELECT * FROM table WHERE DATE_FORMAT( datetime_field, '%Y-%m-%d' ) = DATE_SUB( CURDATE(), INTERVAL 2 DAY )
SELECT fieldname, FROM_UNIXTIME( fieldname, '%Y-%m-%d' ), CURDATE(), DATE_SUB( CURDATE(), INTERVAL 2 DAY )
FROM table
LIMIT 5
$rssfeed .= '<link>' . $classifiedid . '</link>';
I'm already using the IF and ELSE to alternate the row colours. How do I do both?hi admin,
you probably already know, but i think maybe,
IF bidcount row >= 1 {
show }
else {
"be the first to bid" (whatever)
}
i could give a better answer if i could see the code, table/feild names.
pm me if you want me to have a "proper bash" tomo.
We use essential cookies to make this site work, and optional cookies to enhance your experience.