Hello, I have a problem to get unique values from dateperiod-loop. There is a tons of examples how to do it, but after hours of searching, i couldn't find suitable solution for me. The code starts like this. To put it into array_unigue is hard to accomplish for me. Have you any simple proposals to make it working? $intrvl = strtotime("1970-01-01 00:30:00 UTC"); $dateTimes = new DatePeriod( new DateTime($starttime), new DateInterval('PT'.$intrvl.'S'), new DateTime($endtime) ); foreach ($dateTimes as $dt) { $start=$dt->format('H.i'); $end=date('H.i',strtotime('+30 minutes',strtotime($start))); echo'<div>'.$start.' - '.$end.'</div>'; }

Member Avatar
Member Avatar
+0 forum 4

Hi, I bought some months ago a template of site style. For learn, what is the current way of do that. It took a whole weekend, to remove bootstrap styling from my portal. And now, everything is working just fine, and with same style. CSS is including only what is needed. Before removal, i had thousands of rows something. Divided between style.css and bootstrap.css. Harder to fix or style new functions. If you try to add for example table or inputs. Somewhere some styling affects to it. Try to find out, what row.... For sure, my site doesn't deed that …

Member Avatar
Member Avatar
+1 forum 8

Hi, Trying to replace jquery-modules, because i need only datepicker, not any additional stuff. Found a light Pikaday datepicker, working just fine as common, but after hours of searching and reading articles, it seems that nobody has not found a good solution to fix date format issue of it, or without any another massive fix, like moment.js. Why this format has left to this annoying condition.... Have anyone found good solution, for get picked date in format YYYY-MM-DD? I do not want to include 2 jquery-modules, just for one datepicker.....

Member Avatar
Member Avatar
+0 forum 2

Hello, I try to limit query results and fetched items in same time. But, with my script, that is not functioning together. Selected item is not staying as variable in query. Something is badly ordered in this script. <?php if (!isset($_GET['startrow']) or !is_numeric($_GET['startrow'])) { $startrow = 0; } else { $startrow = (int)$_GET['startrow']; } echo '<table class="tabs"> <td><a href="'.$_SERVER['PHP_SELF'].'?startrow='.($startrow+10).'"><input type="button" name="next" value="Next" class="nextbutton" /></a></td> <form name="deal" method="post" action=""> <td><select required name="deal" onchange="javascript: submit()" class="tblselect"> <option value="">Period</option>'; $query = mysqli_query($db,"SELECT DISTINCT icycle FROM offer WHERE orderstatus='Billable' ORDER BY icycle ASC"); $result = ($query) or die ('Error in query: $query. ' . …

Member Avatar
Member Avatar
+0 forum 3

Hello, Another issue came up, when needed to run mass-functions. archiveinv.php is generating html-file with result of query function. This part is working fine. And launched from form-link "archiveinv.php?offerid=$offerid" does it's job. But, when i need to launch many of them in same time, with array result, it's harder to get working. I manage it almost with this part of script. This generates a result of needed rows for execution. But needs still a new query. Executing only one by one. It doesn't do the loop for execute all in same time. I use here header-function, but can i use …

Member Avatar
Member Avatar
+0 forum 13

Hello, Simple is not so simple i see, Trying to save file in html-format from server to local disk. <?php if(isset($_POST['submit'])) { $file = $_POST['file']; file_get_contents('files/$file'); file_put_contents('download/$file'); } ?> <form method="post" action=""> <select name="getfile" id="getfile"> <option value="">Select file...</option> <?php $dir_open = opendir('files/'); while(false !== ($filename = readdir($dir_open))){ if($filename != "." && $filename != ".."){ echo "<option value='$filename'>$filename</option>"; } } closedir($dir_open); ?> </select> <input type="submit" name="submit" value="Get file" class="basebutton" style="width: 55px;"> </form> Looks simple, get filename, but writes nothing to download-share in local disk. Local share is granted to everyone and IIS-users.

Member Avatar
Member Avatar
+0 forum 10

Hi, Has anyone updated this fg_membersite.php for mysqli-functions? I tried, but this is somehow so hard to complete, that i rather ask help from someone. I have tried also replacement of membersite-functions, like in https://daveismyname.com/login-and-registration-system-with-php-bp But no success. It doesn't work, if i like to use my own css, or current functionality with fg_membersite. All my other pages uses mysqli-querys. And they work just fine with fg. This was good start, but for beginners like me, hard to complete: https://www.daniweb.com/programming/web-development/threads/461299/whats-initdb#

Member Avatar
Member Avatar
+0 forum 14

The End.