PHP script simple CRUD
$10-30 USD
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.
Project ID: #29379096
About the project
Awarded to:
★★★★★★★★★★★★★★★★★★★★★★★★★★ 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
11 freelancers are bidding on average $34 for this job
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
@@@ 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
Ready to provide you now. Lets connect on chat for more discussion. Thanks ====================================================
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
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
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.
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