Search found 11 matches
- Tue May 10, 2016 10:20 am
- Forum: PHP - Code
- Topic: Something wrong with mysqli_fetch_array in php?
- Replies: 13
- Views: 4511
Re: Something wrong with mysqli_fetch_array in php?
God bless you ! You are a great person !
- Tue May 10, 2016 7:09 am
- Forum: PHP - Code
- Topic: Something wrong with mysqli_fetch_array in php?
- Replies: 13
- Views: 4511
Re: Something wrong with mysqli_fetch_array in php?
Celauran please enlighten me ! I've tried all the variants, the last one I've tested is this: $queryCondition .= "WHERE date = '" . $post_at_todate . "' AND booked='1'"; $sql = "SELECT * from bookings " . $queryCondition . " ORDER BY start ASC"; $result = mysq...
- Mon May 09, 2016 8:41 am
- Forum: PHP - Code
- Topic: Something wrong with mysqli_fetch_array in php?
- Replies: 13
- Views: 4511
Re: Something wrong with mysqli_fetch_array in php?
I don't want to use a select menu but radio for every single time frame. Or you are thinking of : $time_frame = "'8:22-8:30','8:30-8:38','8:38-8:46','8:46-8:54'"; And here you lost me!!! How do I compare $time_frame with returned $row['start'] ? Am I still using the code bellow? If so, is ...
- Mon May 09, 2016 7:17 am
- Forum: PHP - Code
- Topic: Something wrong with mysqli_fetch_array in php?
- Replies: 13
- Views: 4511
Re: Something wrong with mysqli_fetch_array in php?
Yes. You are right !
How will you condense the code for the first 2 statements? If 8:22-8:30 and 8:22-8:30 exists and 8:30-8:38 and 8:38-8:46 does not, how will you echo radios only for 8:30-8:38 and 8:38-8:46 ?
How will you condense the code for the first 2 statements? If 8:22-8:30 and 8:22-8:30 exists and 8:30-8:38 and 8:38-8:46 does not, how will you echo radios only for 8:30-8:38 and 8:38-8:46 ?
- Mon May 09, 2016 7:04 am
- Forum: PHP - Code
- Topic: Something wrong with mysqli_fetch_array in php?
- Replies: 13
- Views: 4511
Re: Something wrong with mysqli_fetch_array in php?
Where are the duplicates? What is the code you are thinking off.
Right now, the wheels in my head refuse to work after 2 hours of trying in vain.
Right now, the wheels in my head refuse to work after 2 hours of trying in vain.
- Mon May 09, 2016 6:51 am
- Forum: PHP - Code
- Topic: Something wrong with mysqli_fetch_array in php?
- Replies: 13
- Views: 4511
Re: Something wrong with mysqli_fetch_array in php?
Thank you !
Maybe I get to that iteration using switch statement ?
What method do you think it's better ?
Maybe I get to that iteration using switch statement ?
What method do you think it's better ?
- Mon May 09, 2016 4:06 am
- Forum: PHP - Code
- Topic: Something wrong with mysqli_fetch_array in php?
- Replies: 13
- Views: 4511
Something wrong with mysqli_fetch_array in php?
Hi ! I am trying to create a booking system in php and mysql with a datepicker. When user selects a date a table with available period times should be displayed. If a time frame is available, the user should use the radio input and book that perioad of time. If I'm using "ORDER BY start ASC LIM...
- Thu May 05, 2016 1:35 am
- Forum: Javascript
- Topic: checkboxes
- Replies: 5
- Views: 11368
Re: checkboxes
We are talking about : http://www.planetphp.co.uk/free-php-booking-slots-calendar/ and http://www.devnetwork.net/viewtopic.php?f=1&t=142196 If you moved it to another place without saying what is the context, how can someone understand what is all about? I don't think is hijacking but improving....
- Wed May 04, 2016 11:34 pm
- Forum: Javascript
- Topic: checkboxes
- Replies: 5
- Views: 11368
Re: ajax availability calendar help
I've tried to localize the name of the month with: $locales = array('ro.utf-8', 'ro_RO.UTF-8', 'ro_RO.utf-8', 'ro', 'ro_RO', 'ro_RO.ISO8859-2'); setlocale(LC_TIME, $locales); <td align='left'><a href='?month=" . strftime("%m", <td colspan='5' id='center_date'>" . strftime("%...
- Wed May 04, 2016 11:16 pm
- Forum: Javascript
- Topic: checkboxes
- Replies: 5
- Views: 11368
Re: checkboxes
The question was posted here "ajax availability calendar help" for this subect:
http://www.devnetwork.net/viewtopic.php ... 6&start=30
but now I see that it was moved here.
In this context, you can't understand the meaning of the question.
http://www.devnetwork.net/viewtopic.php ... 6&start=30
but now I see that it was moved here.
In this context, you can't understand the meaning of the question.
- Wed May 04, 2016 1:20 am
- Forum: Javascript
- Topic: checkboxes
- Replies: 5
- Views: 11368
checkboxes
Hi to all ! Is there a way to reduce the number of checkboxes clicked by a person? I've tried with js, and it didn't worked. This is the code I've inserted into booking-calendar.php: <script type="text/javascript"> $(window).load(function(){ var SlotCheck = $("#selected_slots input[ty...