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, php, mysql, 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

About the Employer:
( 72 reviews ) Cairo, Egypt

Project ID: #11293256

46 freelancers are bidding on average $327 for this job


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

$250 USD in 1 day
(924 Reviews)

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
(142 Reviews)

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
(55 Reviews)

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
(158 Reviews)

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
(267 Reviews)

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

$500 USD in 7 days
(133 Reviews)

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
(53 Reviews)

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
(25 Reviews)

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
(19 Reviews)

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
(66 Reviews)

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
(97 Reviews)

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)

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
(42 Reviews)

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
(210 Reviews)

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
(57 Reviews)

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
(111 Reviews)

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

$250 USD in 1 day
(83 Reviews)

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
(26 Reviews)

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

$250 USD in 0 days
(44 Reviews)

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
(28 Reviews)