Find Jobs
Hire Freelancers

Very Small PHP Function (needed urgently)

$250-750 USD

已关闭
已发布超过 7 年前

$250-750 USD

货到付款
I have a MySQL table that contains the following columns: - ID (Primary Key) - PromotionCode (Contains some random generated strings as promotion codes) - Available (Contains either 'Free' or 'NotFree' where the default value is the string 'Free') I need a php functions that will do the following: The first function: function CheckPromoCode($PromoCode) This function will take as an input a promotion code It will check if it is found in the table or not plus it will check that the Available value is 'Free' If the above two checks is successful then it will change Available value to be 'NotFree' and return success (i.e. True) Otherwise it will return failure (i.e. False) That's it and I need this very urgent
项目 ID: 11293256

关于此项目

44提案
远程项目
活跃8 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
44威客以平均价$327 USD来参与此工作竞价
用户头像
Hello! With 98% to 99% completion rate, 900+ successfully completed projects, and a 4.99 reputation (maximum possible, 5.0) (can be verified on my profile page https://www.freelancer.com/u/rajeshsonisl.html !!)... you can never go wrong choosing me :) I am available to get started on your project right away. I look forward to your reply. Thanks. Kind Regards, Rajesh Soni
$250 USD 在1天之内
4.9 (1029条评论)
8.9
8.9
用户头像
Hi, I am a designer as well as developer and confident in my field of expertise. I work in php, cake php, Laravel ,codeigniter, wordpress, joomla, html5 and can do this. I can assure you quality, revision and bug fixing. Please refer to my portfolio for evaluation. Lets chat to discuss how to move forward with this project. Regards Gotucat
$400 USD 在7天之内
4.9 (132条评论)
7.9
7.9
用户头像
Hello Thank you for the opportunity to submit a proposal Looking forward to discuss and work together Please check the profile for our Feedback's and Reputation https://www.freelancer.com/u/CodeWolves.html Regards, Chris Cox
$500 USD 在7天之内
4.8 (163条评论)
7.7
7.7
用户头像
Hello, I will create the function as you've described it, accordingly. Looking forward to getting some feedback from you soon. darkwind
$250 USD 在1天之内
4.8 (269条评论)
7.6
7.6
用户头像
Hello! This project is interesting for me. I'm ready to start it right now and finish asap. Best regards, Andrew
$250 USD 在0天之内
5.0 (242条评论)
6.7
6.7
用户头像
- I am a professional back-end developer. - 3 years experience in : * PHP (expert) * HTML (expert) * CSS (good) * jQuery (good) * Javascript (good) * Codeiginiter (very good) * Laravel (good) * Bootstrap (expert). * Wordpress (very good) Themes/ Plugins. ========================================= - I deliver simple and quick to load website . - I care about every small details .I'll do exactly what you need and deliver it on time, clean and secure.
$250 USD 在1天之内
4.9 (146条评论)
6.8
6.8
用户头像
Hi, i see you need a php function which would take a promo code and check whether its available, and make it unavailable if it is as well as return true or false. I can get this done for you very quickly, am a well seasoned developer with over 8yrs experience, you can be assured a job well done. Would be great to hear from you. Cheers.
$333 USD 在1天之内
4.9 (20条评论)
6.8
6.8
用户头像
Hi ! Do you have a special framework ? or special requirements for your project ? How will the code be called ? I mean, by a URL Parameter ? or within another of your scripts ? Can you send me the create table instruction from your system, in order to have the right table schema. I can provide a script within 48h and an access to a test server. Just let me know, and I'll start to work. Rudy Frenchlancer.
$250 USD 在10天之内
5.0 (23条评论)
6.8
6.8
用户头像
Hi, I can do your project in couple hours, you can read my reviews about my skills. If you have a question, please contact me, my working hours are from 10 to 18 GMT+1. Regards
$250 USD 在0天之内
5.0 (54条评论)
6.7
6.7
用户头像
Hello sir! I'm PHP Expert and i can write your function quickly! Please send me message and then let's start to work! Thank you :)
$388 USD 在1天之内
5.0 (42条评论)
6.4
6.4
用户头像
Will be done in not time, I am core php expert of procedural programming. Thanks, Suraj ==============
$250 USD 在0天之内
5.0 (44条评论)
5.6
5.6
用户头像
dear sir im database developer and php coder this task not require more than 40$ and i can create function for you let me know if your interesting Thanks
$250 USD 在10天之内
5.0 (17条评论)
5.2
5.2
用户头像
Hello. Thank you for the detailed explanation of the task. I'm free currently and can create this function easily. Regarding the price the budget is pretty high , i need about an hour for this task and i think a fair price will be around 40$ ,but system doesnt allow me to set it because of the budget you've set. I can start immediately and will provide results during next hour. I'll need ftp and mysql access to develop and test this function. Thank you, Michael.
$250 USD 在0天之内
5.0 (62条评论)
5.2
5.2
用户头像
I read through the job details extremely carefully and I am absolutely sure that I can do the project very well.
$250 USD 在0天之内
5.0 (41条评论)
4.9
4.9
用户头像
Hello I don't know how you connect to database... ok All function with connect to DB function CheckPromoCode($PromoCode) { $con=mysqli_connect("localhost","my_user","my_password","my_db"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); return false; } $PromoCode= mysqli_real_escape_string($con, $PromoCode); $sql = "update table_name set Available='NotFree' where PromotionCode='$PromoCode' AND Available='Free'"; mysqli_query($con, $sql); if (mysqli_affected_rows($con) == 0) return false; return true; } Best Regards ;)
$250 USD 在0天之内
5.0 (17条评论)
4.9
4.9
用户头像
Hi, i just read the info of function you need, lets talk, i can make it for you within no time, only 20 mins waiting for your reply
$250 USD 在0天之内
5.0 (11条评论)
4.2
4.2
用户头像
I am us Developer than can create the functions described easily. Don't wast your time on the spammers that cant deliver. I am ready to get started when you are.
$255 USD 在1天之内
4.9 (8条评论)
4.0
4.0
用户头像
Hello, I'm an experienced web developer and I can help you with that ASAP, as it's very simple for me.
$250 USD 在0天之内
4.8 (14条评论)
3.5
3.5
用户头像
I will need to know what SQL environment you are using MySQL or Microsoft SQL Server. The approach will be exactly what you outline, query the table perform the logic and return true/false. I have been programming in PHP since 2007 ... have a BS in the field too.
$250 USD 在1天之内
5.0 (2条评论)
3.2
3.2
用户头像
Your ad called out to me because the position, as described, is such a perfect match with my skills, as you will see when you review my Profile. I am a highly skilled PHP Developer with 3 years of experience programming for a multitude of different digital projects. I am very friendly and am an enthusiastic team player who enjoys challenging projects.
$277 USD 在2天之内
4.8 (3条评论)
1.9
1.9

关于客户

EGYPT的国旗
Cairo, Egypt
5.0
95
付款方式已验证
会员自10月 6, 2014起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。