Have fun with PHP arrays and date functions -- 2

Task is in comments - only $is_specific_date =='1' and $is_weekend =='1' need work.

if ($is_specific_date =='1')


// Push $start and $end into $dates_array[] as outbound ($start) and inbound ($end)


else if ($is_holiday =='1')


$sql = "SELECT country FROM `airport` WHERE iata = '$fromCode'";


$country = $con->query($sql);

$row = $country->fetch_assoc();

$country = $row['country'];

$sql = "SELECT (date - INTERVAL 1 DAY) AS outbound, (date + INTERVAL 2 DAY) AS inbound FROM `holidays` WHERE date> NOW() and date < (NOW() + INTERVAL 1 YEAR) and country like '$country' ";


$dates = $con->query($sql);

$dates_array[] = $row;

while( $row = mysqli_fetch_array($dates)){

$dates_array[$row['outbound']]['outbound'] = $row['outbound'];

$dates_array[$row['outbound']]['inbound'] = $row['inbound'];




else if ($is_weekend =='1')


echo $start;

echo $end;

echo $startw;

echo $endw;


Find all Thursdays and Sundays in between start and end. If start is less than today's date use today's date instead.

Save into array with Thursday as Outbound and Sunday as Inbound (see above)



Kemahiran: PHP

Lihat lagi: translate php arrays, php timezone date, php convert date, ajax php erase date mysql, php shipping date calculator, fun php project, php allow date range delivery, fun php scripts, php calculate date booking, populate date php mysql date picker, php curve text functions, php check date overlap, php insert date mysql database post, php parsing date time email usenet, infopath 2003 jscript date functions, using whois php expire date, php zip code functions

Tentang Majikan:
( 186 ulasan ) Palo Alto, United States

ID Projek: #20033450

27 pekerja bebas membida secara purata $25 untuk pekerjaan ini


**Dear** I am an expert of Web Development such as php(Symfony, WP,CI,Cake..),html,css,.net, and so on. Also i have a lot of experiences laravel, angular.js,react.js,node.js,vue.js, [login to view URL] and [login to view URL] I have do Lagi

$35 USD dalam sehari
(104 Ulasan)

hello, i understand your requirements... please contact me or accept my bid so that we can discuss more and start soon... i m expert in this type of projectInfo... u can also see my portfolio... please, give me a chan Lagi

$22 USD dalam sehari
(480 Ulasan)

Hi there, I do PHP programming and I know how to work with arrays and date utility libraries. I went through your requirements and I would like to do this project if given the opportunity. Let me know if you are intere Lagi

$30 USD dalam sehari
(415 Ulasan)

I can do it now i am bhavika i have 3+years experience in php , laravel , ajax , jquery , javascript , html ,css, bootstrap so i can do it and i can start it right now so please give me chance to serve you i have done Lagi

$20 USD dalam sehari
(118 Ulasan)

⭐ Good day,Dear!⭐ WEB Expert is HERE! I am a full-stack web developer experienced in PHP/CodeIgniter/Laravel/Python/Django/React.js/Vue.js and am interested in working for your project. I have expertise in PHP and can Lagi

$20 USD dalam 2 hari
(43 Ulasan)

Hi, I am 8 years experienced web developer. I understand your point. I can complete this project within two hours . Please check my profile for my work quality . Thanks, Bhaskar Mandal

$30 USD dalam sehari
(85 Ulasan)

Hello! I am a web developer. Have not you seen the proposal I wrote on previous project you posted? I wrote there I can do it Saying again If you hire me, I am gonna do my best for our project. I guarantee the go Lagi

$25 USD dalam sehari
(13 Ulasan)

Hello I have walked through your note and enough confidence that I can work on your project I am having 10 years of rich experience as Mobile & Web Developer and also know graphics designing means in my career i learn Lagi

$30 USD dalam 2 hari
(16 Ulasan)

Hi, Sir!! I CAN DO IT WONDERFULLY. PLEASE HIRE ME!!!!!!!!!!!!!!!!!!!!!!!!! YOUR IDEA is PULLED me INTO YOUR WORLD. I am a new freelancer. You may doubt me because I have white history. BUT I have rich experie Lagi

$30 USD dalam sehari
(9 Ulasan)

Hi. I am Alex. I can give you a hand and deal with the PHP script you have. I am a back-end developer and I work with hideous and complicated PHP stuff all the time. Give me a message. Cheers!

$30 USD dalam sehari
(9 Ulasan)

Hi, Your requirements are fully clear to me and I am applying only because I meet all the requirements that you are looking for. I have been working as a wordpress developer and designer for more than 6 years and I kn Lagi

$25 USD dalam sehari
(28 Ulasan)

Dear [login to view URL] Expert I've read your job very carefully and understand what you want. I'm a Senior developer with 10+ years experience. I've special skills in Web Developing and Mobile Any of your requirements are w Lagi

$25 USD dalam sehari
(19 Ulasan)

Hi! I'm PHP expert and delighted to inform you that I am very interested in your job description after read yours carefully. My experience in PHP is over 8 years and I mastered not only original PHP but also his fa Lagi

$25 USD dalam sehari
(6 Ulasan)

Hello, how are you? Thank you for your opportunity to bid on the project. I have developed web sites for five years, including web scraps, shopping sites, business web apps, and web API integration. So, I can help y Lagi

$20 USD dalam sehari
(3 Ulasan)

I have read the “Have fun with PHP arrays and date functions -- 2 ” project Des. and I am very much confident i can do this project because I DId a Lots of Project like this. It Will be a pleasure if you will give me Lagi

$20 USD dalam 7 hari
(9 Ulasan)

Hi, I am a php programmer and website developer. I have completed many projects before. I have read and understood what you require. Let me know your response. Thanks

$20 USD dalam sehari
(5 Ulasan)

Hello, I am new to here this platform freelancer.com but developed number of website on PHP and mobile apps in last 9 years. I can fix your date and array funtions on PHP. Thank you Altius

$30 USD dalam sehari
(1 Ulasan)

Dear Client, It's pleasure to meet you and i have read your description carefully and understood. I'm an expert at HTML, CSS, JavaScript and JQuery. So I can write high performance, robust and clean code and design Lagi

$25 USD dalam sehari
(1 Ulasan)

Hi, Client, How are you? I am a expert in Web Developing. I am very interesting in your task I think I can do your task perfectly. I will wait for your call. Thank you. Roman

$25 USD dalam sehari
(1 Ulasan)

I can do ittttttttttttttttttttttttttttttttt I can do ittttttttttttttttttttttttttttttttt I can do ittttttttttttttttttttttttttttttttt I can do ittttttttttttttttttttttttttttttttt I can do itttttttttttttttttttttttttttttttt Lagi

$25 USD dalam 0 hari
(1 Ulasan)