Sanitize script from mysql injection + remove UPDATe adn SELECT and use INSERT

Hi, I have a little script of 40 lines, but sadly is vulnerable to mysql injection.

I would like to sanitize this script and then remove the race condition present made by SELECT and UPATE.

Skills: MySQL, PHP

See more: insert update ajax php mysql, insert update php ajax mysql, mysql read text file insert update, asp script mysql update query, mysql update field script, mysql update users script, bash script mysql insert, bash script mysql insert file, perl script insert csv file data mysql

About the Employer:
( 11 reviews ) roma, Italy

Project ID: #9201663

Awarded to:


Hi, i hope you're doing well. I've just read your project's description and i would like to help you with it. I'm an experienced web developer with the necessary skills for getting this job done. Responsibilit More

$25 USD in 0 days
(122 Reviews)

6 freelancers are bidding on average $22 for this job


A proposal has not yet been provided

$25 USD in 0 days
(205 Reviews)

Hello i have 1+ year experience in web development. i am new at so dont have rating and reviews to show you but i assure you if you hire me for this project then you will hire me again for your future pr More

$15 USD in 1 day
(26 Reviews)

A proposal has not yet been provided

$15 USD in 1 day
(2 Reviews)

Hello. How can I help you? As far as I've understood SQL injection prevents you from committing the query. Is that correct? Looking forward to hear from you, have a nice day

$15 USD in 2 days
(1 Review)

Hello! I'd be happy to make your MySQL usage safe and free of race conditions. Please contact me with the chat feature at your convenience. I could do this today.

$35 USD in 2 days
(0 Reviews)