To : mohamad_1978
first, I don't know what type of data is start_date and end_data, it is "datetime" ? anyway to kevinsequire, your code is wrong! I don't think your code will run.
I don't know how will you display your poll, it is one poll or many polls you want to display?
To show one poll, the SQL query would be
$currentDate = date('Y-m-d H:i:s');
$sqlstm = "SELECT FROM poll WHERE start_date < '$currentDate' AND end_date > '$currentDate' ORDER BY start_date DESC LIMIT 1";
if you want to show many poll, then omit the LIMIT 1.
Hope this will help.