Closed

Very Small PHP Function (needed urgently)

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

Skills: PHP

See more: php source code authometed manegmet police crime in it project, i need a typist urgently needed intokai area, i have two million i need to start business so i need advice, create a search function in php source code, i need a good designer who can design logo for two company i will not give you any idea how the logo should, i need a good designer who can design logo for two company i will not give you any idea how the logo should look, urgently needed php, php mysql small projects demo code, php zip code radius function, urdu translator urgently needed, programmer needed code php, php pages need doctypes, php programmer need 200812, text orientation using functions php, urgently needed done animation online rendering house, csv functions php, top ten php scripts need, php mysql code bid, php source code email inquiry form, php zip code field, php adjust php tried code, php webcam code, php pseudo code, mysql php pseudo code, compare functions php

About the Employer:
( 59 reviews ) Cairo, Egypt

Project ID: #11293256

47 freelancers are bidding on average $326 for this job

rajeshsonisl

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 !!)... y More

$250 USD in 1 day
(840 Reviews)
8.4
shibin123sl

Hello, Hope you are doing great. We gone through project description. We are professional website design and development company operating from India. We have eight years of experience in web/mobile software design an More

$555 USD in 10 days
(141 Reviews)
8.0
mrinal981

Hello, I have read the job details and can implement a Php function as per your needs. - Skilled in PHP/MySQL/Javascript - Available to discuss and can start the job right away Some of PHP sites I have worke More

$500 USD in 7 days
(49 Reviews)
7.5
darkwind

Hello, I will create the function as you've described it, accordingly. Looking forward to getting some feedback from you soon. darkwind

$250 USD in 1 day
(265 Reviews)
7.6
CodeWolves

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 Re More

$500 USD in 7 days
(130 Reviews)
7.5
neoglobal

We can start working on your project from today if needed. You do not need to release any payment until some of the work is shown and uploaded on demo. We have been working on many projects before and many of them c More

$444 USD in 2 days
(46 Reviews)
7.2
usatechsoft

HI My Notion : "No Satisfaction, No Payment" We have expertise in Web Design & Development. Please check our client reviews on Elance to determine the quality of our work.: Lets discuss in detail and start now? More

$258 USD in 1 day
(109 Reviews)
7.2
johnflash

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 More

$333 USD in 1 day
(18 Reviews)
6.7
sdgcode

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 in 0 days
(54 Reviews)
6.7
yusuf2004

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 in 1 day
(39 Reviews)
6.4
gotucat

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 fixi More

$400 USD in 7 days
(47 Reviews)
6.4
a4logic

Dear Sir/Madam, Thank you for this wonderful opportunity. I am keenly considering your job post including these skills.I am working as team leader in A4Logic it is software and web solution company we are operati More

$250 USD in 2 days
(60 Reviews)
6.2
AndrewYer

Hello! This project is interesting for me. I'm ready to start it right now and finish asap. Best regards, Andrew

$250 USD in 0 days
(183 Reviews)
6.4
Paznek

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 More

$250 USD in 10 days
(20 Reviews)
6.1
vigilantsoftware

Hello, We would like to thank you for the opportunity to submit our proposal for your project. We are interested to work in your project.I understood that you need Small PHP Function . I need to discuss with you More

$252 USD in 4 days
(25 Reviews)
6.2
AwaisChaudhry

Hi there! I have read what you exactly need, however I would like to ask you a few questions. I wouldn't call myself a master but I do work smart and do not rest until I get the job done. Please feel free to ping me an More

$555 USD in 10 days
(24 Reviews)
5.9
kawalecove

We Believe in Quality and Delivering a Quality Product Thanks for your post on freelancer! Ecove Solutions is a trusted, global provider of digital marketing Services and IT Services; our clients rely us due to fastest More

$388 USD in 10 days
(53 Reviews)
6.1
suraj2

Will be done in not time, I am core php expert of procedural programming. Thanks, Suraj ==============

$250 USD in 0 days
(44 Reviews)
5.6
pratikshapkl

As i saw your needs,I read all your job description, its according to my working [login to view URL] i heartly desire to get this project.I am seeking better opportunities in long term job because I want to build a long term goo More

$277 USD in 10 days
(75 Reviews)
5.9
mihas

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 More

$250 USD in 0 days
(62 Reviews)
5.2