"$total") { $next= "1"; } } //SQL NEXT $sqlNext = "SELECT * FROM trabalhos WHERE id = '$next'"; $resultadoNext = mysql_query($sqlNext) or die (mysql_error()); while ($linha=mysql_fetch_array($resultadoNext)) { $tituloNext = $linha["titulo"]; //SQL PREVIOUS $sqlPrevious = "SELECT * FROM trabalhos WHERE id = '$previous'"; $resultadoPrevious = mysql_query($sqlPrevious) or die (mysql_error()); while ($linha=mysql_fetch_array($resultadoPrevious)) { $tituloPrevious = $linha["titulo"]; ?>
  • -" class="previous" data-title="Previous">
  • -" class="next" data-title="Next">

$height) { $percentagem = "style=\"max-width: 100%;\""; } else { $percentagem = "style=\"max-width: 50%;\""; } //Detect special conditions devices $iPod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod"); $iPhone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); $iPad = strpos($_SERVER['HTTP_USER_AGENT'],"iPad"); $Android= strpos($_SERVER['HTTP_USER_AGENT'],"Android"); $webOS= strpos($_SERVER['HTTP_USER_AGENT'],"webOS"); //do something with this information if( $iPod || $iPhone ){ //were an iPhone/iPod touch -- do something here $percentagem = ""; }else if($iPad){ //were an iPad -- do something here $percentagem = ""; }else if($Android){ //were an Android device -- do something here $percentagem = ""; }else if($webOS){ //were a webOS device -- do something here $percentagem = ""; } else { } ?>

Tags

$tag"; } echo implode(" ", $tags); } ?>