Posts by Marcelo Mattos • 31 points
3 posts
-
0
votes4
answers199
viewsA: PHP Create dynamic array from one SQL and Separate by a specified amount of record in another Array
First step completed the code was dry Now is mount the HTML. // SELECT $sql = "SELECT idOferta, NomeOferta FROM Oferta ORDER BY RAND() "; //Seleciono todos os Produtos $totalOfertas =…
-
1
votes4
answers199
viewsA: PHP Create dynamic array from one SQL and Separate by a specified amount of record in another Array
I managed to do this way with the posted logic I added the function array_chunk Error was in using While with the for was repeating everything for($j = 1; $j <= $contaTotalOfertas; $j++){ $row =…
-
1
votes4
answers199
viewsQ: PHP Create dynamic array from one SQL and Separate by a specified amount of record in another Array
Boa Galera I’m New in PHP and my Logica this Bad D+ I need to select (SQL) a list of Offerings and separate Offerings from 6 to 6 and then create the array containing the 6 Offerings Ids. Code: //…