'.$r['poll_question'].'


'; $opt = explode("|",$r['poll_options']); $op = count($opt)-2; $options = ""; for($z=0;$z<=$op;$z++){ $options .= '
  • '.$opt[$z].'
  • '; } $options .=''; ////********************************** $qz = mysql_query("select * from poll_votes where ip = '$sess_id'and poll_id ='$pid' "); $rz = mysql_num_rows($qz); if($rz<=0){ $showpoll = '
    '.$question.'
      '.$options.'
            
    View poll results   

    '; }else{ $showpoll = '

    You have voted already

    '; $showpoll .= '
    View poll results   
    '; } ?>