Đã Hủy

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'";

var_dump($sql);

$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' ";

var_dump($sql);

$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'];

}

var_dump($dates_array);

}

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)

*/

}

Kĩ năng: PHP

Xem nhiều hơn: 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

Về Bên Thuê:
( 186 nhận xét ) Palo Alto, United States

ID dự án: #20033450

27 freelancer đang chào giá trung bình $25 cho công việc này

Angel521

**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 Thêm

$35 USD trong 1 ngày
(104 Nhận xét)
7.4
devikagupta

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 Thêm

$22 USD trong 1 ngày
(480 Nhận xét)
7.2
it2051229

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 Thêm

$30 USD trong 1 ngày
(415 Nhận xét)
6.8
bjrupani

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 Thêm

$20 USD trong 1 ngày
(118 Nhận xét)
6.4
ludwig333

⭐ 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 Thêm

$20 USD trong 2 ngày
(43 Nhận xét)
6.0
bhaskarmandal

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 trong 1 ngày
(85 Nhận xét)
6.2
dreammate0621

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 Thêm

$25 USD trong 1 ngày
(13 Nhận xét)
5.2
Mexi2705

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 Thêm

$30 USD trong 2 ngày
(16 Nhận xét)
4.7
susanna2018

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 Thêm

$30 USD trong 1 ngày
(9 Nhận xét)
4.7
lexsystems

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 trong 1 ngày
(9 Nhận xét)
4.2
aswebsmart

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 Thêm

$25 USD trong 1 ngày
(28 Nhận xét)
4.4
garethbill

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 Thêm

$25 USD trong 1 ngày
(19 Nhận xét)
4.8
MobileKing1225

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 Thêm

$25 USD trong 1 ngày
(6 Nhận xét)
3.3
mobileexpert1235

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 Thêm

$20 USD trong 1 ngày
(3 Nhận xét)
3.3
joshimrc24

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 Thêm

$20 USD trong 7 ngày
(9 Nhận xét)
3.0
Intranetman

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 trong 1 ngày
(5 Nhận xét)
2.2
Rinaweb

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 trong 1 ngày
(1 Nhận xét)
1.7
sunitasolankier

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 Thêm

$25 USD trong 1 ngày
(1 Nhận xét)
0.8
romancoder204

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 trong 1 ngày
(1 Nhận xét)
0.8
sharpman1013

I can do ittttttttttttttttttttttttttttttttt I can do ittttttttttttttttttttttttttttttttt I can do ittttttttttttttttttttttttttttttttt I can do ittttttttttttttttttttttttttttttttt I can do itttttttttttttttttttttttttttttttt Thêm

$25 USD trong 0 ngày
(1 Nhận xét)
0.4