Posts by A52 • 11 points
7 posts
-
0
votes1
answer44
viewsA: Mysql select consecutive days
I managed to solve it. With the select below I can bring 7 consecutive days if all 7 have the event 99. select if(COUNT(a.cd_ocorrencia) = 7, TRUE, FALSE) as ocorrencia FROM( select cd_ocorrencia,…
-
1
votes1
answer44
viewsQ: Mysql select consecutive days
All right?! I have selected below to bring the days where there is event 99. If there is more than one event 99 on the same day it brings the day only once. I would like to improve this select to…
-
0
votes2
answers83
viewsA: PHP upload files to multiple directories
I had to think differently. Fix me if I’m wrong but I believe that in the second looping ended up losing the source of the file since it had been saved/moved in the first directory chosen and at the…
-
-1
votes2
answers83
viewsQ: PHP upload files to multiple directories
Oops, all right?! I have the code below to upload files to several directories with years/ months: <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"…
-
0
votes1
answer338
viewsQ: Table with Page Break overwriting fixed element
I have a script from a legacy system that creates a table with the data coming from the php database. The script was developed to store everything in a $html tag and at the end give an echo. At the…
-
0
votes1
answer25
viewsA: Multisort array setting in PHP
I ended up solving changing the way the array was created and throwing the rest of the code out of while(): while($RR = mysql_fetch_array($sql)){ $motorista[] =…
-
0
votes1
answer25
viewsQ: Multisort array setting in PHP
opa, everything right?! I took this script to give continuity and has the select that brings me the database data. I’m having difficulty in doing Multisort. <?php $sql = mysql_query("select…