Find Jobs
Hire Freelancers

PHP Modification of a Script

$10-30 USD

Completed
Posted about 10 years ago

$10-30 USD

Paid on delivery
Shouldn't take longer than an hour for an experienced coder! <?php if(intval($_GET['part']) ==1) { echo $videodata['code1']; } elseif(intval($_GET['part']) ==2 and $videodata['code2']!='') { echo $videodata['code2']; } elseif(intval($_GET['part']) ==3 and $videodata['code3']!='') { echo $videodata['code3']; } elseif(intval($_GET['part']) ==4 and $videodata['code4']!='') { echo $videodata['code4']; } elseif(intval($_GET['part']) ==5 and $videodata['code5']!='') { echo $videodata['code5']; } else { echo $videodata['code1']; } ?> What I essentially need is that for each ['codeX]' it is echoed with an additional code, depending on an additional value which is also fetched using $videodata: echo $videodata['code1']; To be specific, I would like that the code first checks if: $videodata['videotype1'] = 'YouTube'. If 'videotype1' is indeed 'YouTube' then it should: echo $videodata."<iframe width="420" height="345" src="[login to view URL]".['code1']."></iframe>"; But if 'videotype1' is not 'YouTube', but instead it is Vimeo then it should: echo $videodata."<iframe src="[login to view URL] video/".['code1']."width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen> </iframe>"; This should also be the case for code2, code3, etc..! What is the best way to do it and can you do it?
Project ID: 5857700

About the project

7 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
A proposal has not yet been provided
$16 USD in 0 day
5.0 (2 reviews)
2.1
2.1
7 freelancers are bidding on average $29 USD for this job
User Avatar
I am specialize in C++,C#.net,ASP.Net,JAVA, PHP, MySQL, Wordpress, e-commerce websites and portals, payment gateways and customized web based applications. my aim to deliver quality products to our customers within specified deadline. If hired by you I will put in my best work. I am ready to be hired by you and start work on your jobs. PM to me for more discussion
$24 USD in 1 day
5.0 (14 reviews)
4.1
4.1
User Avatar
I can do that for you and make your current script a little better too, it looks like it was written by an inexperienced coder.
$66 USD in 1 day
5.0 (1 review)
2.1
2.1
User Avatar
a gift from me to you ;) you can do it like this $videodata['videotype']['code']; values could be if its youtube $videodata['youtube'][1]; $videodata['youtube'][2]; .... $videodata['youtube']['N']; or if it is vimeo you can do it like this $videocode['vimeo'][1], $videocode['vimeo'][2],....$videocode['vimeo'][N]
$25 USD in 2 days
5.0 (2 reviews)
0.0
0.0
User Avatar
Dear Sir, I am writing to inquire about job opportunity you have requested. I am interested in working for you and to complete the given task successfully and as you require. As a skilled labor force in Web Development such as PHP/MySQL with HTML/CSS, I am eager to contribute my abilities and experience for your required job. Given my extensive training and background, I believe I can help you in getting this done. Please provide me full information. I can personally assure high quality service and excellent communication can be provided by myself to fulfill your work. I look forward to hear from you. Sincerely, Hisham Haniffa
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, I am a php developer and have wide experience. I will like work on this, seems small work. More details I will check with you Please contact me if you like it to be done on 26th Apr 2014. As I am busy today for other task I have. Thanks Ravi Bhagat
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of NETHERLANDS
Metropool, Netherlands
4.9
70
Member since Jul 26, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.