1
Well my problem is this, my site is configured for android and desktop, then I call the data by database and use the LIMIT
ai it shows both "x", I would like to know how to use the LIMIT
for desktop value "x" and for android another value, would anyone know how I could do ? here’s a piece of my code
<?php
$strSQL = sprintf("SELECT * FROM `livros` WHERE limita = 'inicio' AND status = 'velho_testamento' LIMIT");
$stmt = $mysql->execute($strSQL);
while($row = $stmt->fetchObject()){
echo '<li><a href="capitulos.php?id_livro='.$row->id_livro.'" class="'.$row->responsive.'">'.$row->nome_livro.'</a></li>';
}
?>
at first you would have to take the
user-agent
through the front end, and send as a parameter to the back end, so Oce could know and process the data.– RFL
could you give an example? I’m a beginner
– goio