PHP script simple CRUD

Completed Posted 3 years ago Paid on delivery
Completed Paid on delivery

I need a PHP script written using PHP and MySQLi with the following logic:

function add_execution_time_to_database($foo){

connect to database

add new line to table with execution time

add column value "start" or "finish" based on $foo

}

function get_execution_time_from_database(){

get last line added and check if column value is "start" or "finish"

}

function execute_code(){

echo "success"

sleep 100;

}

function locked_for_execution(){

if (get_execution_time_from_database() is not "finish") {

stop here;

} else {

send back value / continue;

}

}

//start here

if last line in database is not "finish" then stop here.

if last line in database is "finish" then continue.

add entry to database with value "start"

"add_execution_time_to_database($foo)"

run code

"execute_code()"

add entry to database with value "finished"

"add_execution_time_to_database($foo)"

end.

PHP MySQL

Project ID: #29379096

About the project

11 proposals Remote project Active 3 years ago

Awarded to:

baltickriscoder

★★★★★★★★★★★★★★★★★★★★★★★★★★ Dear Client, Nice to meet you. I have just read your requirements and very interested in your job. I am senior php developer with 5+yrs experience in Laravel, CodeIgniter. I have developed m More

$30 USD in 1 day
(41 Reviews)
6.2

11 freelancers are bidding on average $34 for this job

alkajain2906

I am Senior Full Stack Developer in Website/Software Design & Website Development. I'm an Expert in: -Frontend & Backend Development
-Zend
-Cake PHP -Python -Data Science -Machine Learning -JVM technologies -Jquery, P More

$20 USD in 1 day
(63 Reviews)
6.0
bobrovpavelwork

@@@ Fast-Speed &&& High-Quality @@@ Hello, How are you? Here is a PHP and MySQL expert. I have 8+ years of rich experience in Web Development using these skills. So I'm very confident in your project. If you hire me, y More

$30 USD in 1 day
(23 Reviews)
5.5
forgeahead

Ready to provide you now. Lets connect on chat for more discussion. Thanks ====================================================

$18 USD in 1 day
(4 Reviews)
3.1
fatehmir99

Hi Dear. Alright! got it. I will do what you're looking for. please discuss with me in detail so I can start your project. Thank you

$20 USD in 7 days
(2 Reviews)
1.2
Abdulrahim03

I can build a PHP script written using PHP and MySQL for you. I am an experienced web developer and well know for woo-commerce, Shopify, javascript, custom coding, SQL, blog publisher, theme developer, Joomla, Ruby, PH More

$150 USD in 7 days
(0 Reviews)
0.0
SidritTrashani69

Hello, This is a very simple job for me. I can send the result within a few hours once you award me this. Sincerely Sidrit.

$30 USD in 1 day
(0 Reviews)
0.0
HighTechRiders1

Hii there, How are you?? I have gone through your job description and having more than 5 years experience in web development and design, i will able to manage all your instruction also take care of responsive issue .. More

$20 USD in 1 day
(0 Reviews)
0.0