Ver Mensaje Individual
  #7 (permalink)  
Antiguo 27/01/2014, 03:42
camilomascarell1987
 
Fecha de Ingreso: abril-2013
Mensajes: 39
Antigüedad: 11 años
Puntos: 0
Respuesta: Sistema de encuestas

Código PHP:
<?php
$poll
->total_votes intval($poll->total_votes10);
$voted_answer Cookie::get('p_' $poll->id '_v');
if( ! 
$voted_answer ) {
$vote Vote::where('voter_ip''='CURRENT_USER_IP)->and_where('poll_id''=', (int) $poll->id)->first();
if( 
$vote ) {
$voted_answer $vote->answer_id;
}
unset(
$vote);
}
?>