Posts by danilo eugenio • 21 points
2 posts
-
0
votes0
answers27
viewsQ: How to dynamically overwrite a variable when making a loop in a query?
I have a variable $x = 0 and the $y = 10 in the following query: select * from tabela limit 10 offset 0 This query makes a loop, more it would need in that loop the value of the offset increase +10…
-
1
votes1
answer726
viewsQ: How to make a "while" of the number of rows of a query?
Does anyone know if in that PHP function - mysql_num_rows has to do with me making a while in it? I need to break the total number of rows in the table. I tried to do: $sql = "select ..."; $query =…