Call PHP function from Javascript to update Database

We need to call a PHP function from a webpage thru Javascript. The users will have 4 buttons to specify their mood. These buttons are mapped to the keyboard keys 'a','s','d' and 'f'. the javascript is working and it's provided.

What we need is that whenever the javascript function is invoked, there is an ajax request to a PHP page that will update the database increasing the values of total votes.

The total votes tracked are the following:

1) Total votes from the beginning of the tracking

2) Total votes for the current month

The database structure is very simple and the structure is provided.

Summary of Requirements:

1) Implement the PHP function to be called from Javascript

2) Whatever happens, the request must be performed with ajax in background without reloading the page.

3) In case of PHP errors the page can be reloaded if necessary. In any case, no message should be displayed on the page since there won't be a keyboard connected.

4) a PHP page retrieving the table with the current values, showing a total for all the periods at the bottom.

5) if the month changes, add a new period in the period column, format 'YY-MM' (1803) and restart the counter for the period

What is provided:

1) the ZIP with the working prototype for the javascript part, icons and static counters

2) the database sql creating script to see the table how it looks like

What is needed:

1) the PHP file adding informations to the database

2) the PHP page with the summary of the values and total

3) modification of the given Javascript to call script at point 1 without page reload (ajax)

Taidot: AJAX, Javascript, jQuery / Prototype, MySQL, PHP

Näytä lisää: javascript update database php, php ajax call php function, call php function wordpress, php, mysql, javascript, iphone call php function, ajax webpage call php function, call jquery function javascript function, ajax call php function, refresh div call php function, call php function server using cross domain ajax, call php function ajax, javascript call php function, call php function javascript, call colorbox function javascript, php script automatically update database, call php function, php drop list update database, call php function vbnet

Tietoa työnantajasta:
( 1 arvostelu ) Lugano, Switzerland

Projektin tunnus: #16631619

35 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Hello, This is not a canned response. I have gone through the mentioned requirements thoroughly and I am sure that I can get this task done for you and can deliver following: 1) the PHP file adding informations t Lisää

$200 USD 3 päivässä
(214 arvostelua)

i am a expert in php, javascript, ajax, i have done many similar projects. looking to work with this project. Thanks

$264 USD 3 päivässä
(1074 arvostelua)

Hi there, let me help you get this done. I can develop this PHP script with necessary Ajax calls. . I am working as a programmer for last 12+ years and have done varieties of works in different areas. Look forward to h Lisää

$235 USD 3 päivässä
(1220 arvostelua)

Hi, We will get this done quickly and deliver you back updated js and php codes. Please share zip file so we can get started. Thank you,

$235 USD 1 päivässä
(226 arvostelua)

To call the php function via ajax. The ajax calls will be done when user press a, s, d, f in the keyboard. The page will not reload. A result page to be provided. Displaying the total for all periods. a. To Lisää

$210 USD 3 päivässä
(573 arvostelua)

Hi There, Greetings!! * We are Real PHP + JavaScript Experts. * As you required, We can surely help you to call PHP function from JS to update Database (Increase Total votes). * We allocate our highly experienced Lisää

$500 USD 3 päivässä
(206 arvostelua)

Hello I got to know the full flow for the function that you wants to call.i have checked the attached files and ready to [login to view URL] discuss it in detail over chat. Previous work:- [login to view URL] http:/ Lisää

$250 USD 3 päivässä
(430 arvostelua)

Hello, I have not yet checked the code in the zip but have understood what you want in the three points. 1) the PHP file adding informations to the database - BASED ON INPUT 2) the PHP page with the summary of Lisää

$258 USD 6 päivässä
(155 arvostelua)

Hi There, Project requirement:- You are looking for an expert PHP and JavaScript developer who can help you regarding the project. I have seen entire job description, attached SQL file, JavaScript and gone through t Lisää

$617 USD 5 päivässä
(125 arvostelua)

Hi! my name is Vikas Pundora. I am an experienced PHP developer. I have expertise in developing database driven web applications using PHP and MYSQL. I have read the project requirements carefully and I have understoo Lisää

$200 USD 3 päivässä
(240 arvostelua)
$235 USD 5 päivässä
(119 arvostelua)

I will code the script to track votes using AJAX without reloading page. I will also code a page that will show all summary of votes. Waiting to hear from you to discuss details.

$235 USD 3 päivässä
(73 arvostelua)

Hi, Experienced Web Developer with years of experience in PHP/MySQL/Javascript/AJAX/Wordpress. I have gone through your project requirements and I can complete your Voting script in good time :) Looking forward Lisää

$98 USD 1 päivässä
(439 arvostelua)

A great team is here for your service!! I read the project description properly, and I agreed to fulfill 100% of all your requirements. I can start your important project right away. Let's start! To achieve goal with Lisää

$211 USD 5 päivässä
(154 arvostelua)

I am expert php expert developer you can have a look my profile [login to view URL] all clients are very happy .please have a look my last developed systems which are on php based . . [login to view URL] Lisää

$264 USD 5 päivässä
(156 arvostelua)

I have 5 + years experience in Web development. I have strong knowledge in, mvc, angularjs, php, WordPress, mysql, magento, html, java script, woocomerce, ajax. Check my profile and check my review.

$235 USD 2 päivässä
(89 arvostelua)

Hi, I am kalidass Senior PHP developer, I have more than 8 years experience in responsive website development. I have read your full description i am very much confident to do this job. Looking forward to w Lisää

$250 USD 20 päivässä
(186 arvostelua)

Hey, I am full stack developer with 7+ years of experience in PHP/MySQL based Web Designing and Development including CMS coding conventions and configurations. with a proven record of PHP and based technologies, I Lisää

$470 USD 3 päivässä
(43 arvostelua)

Hi sir As web expert I am very glad to see your post. I have qualified experience in php and js. Your project is very suitable for me. I am sure I can help you well if you give me your project. Please feel free co Lisää

$200 USD 3 päivässä
(82 arvostelua)

Hello sir, We can do this work for you as we are expert in javascript and PHP. So let us know if we can work for you. Thank you

$164 USD 3 päivässä
(150 arvostelua)