Đã Đóng

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)

Kĩ năng: AJAX, Javascript, jQuery / Prototype, MySQL, PHP

Xem nhiều hơn: 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

Về Bên Thuê:
( 1 Nhận xét ) Lugano, Switzerland

ID dự án: #16631619

35 freelancer đang chào giá trung bình $216 cho công việc này


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 Thêm

$200 USD trong 3 ngày
(214 Nhận xét)

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

$264 USD trong 3 ngày
(1074 Nhận xét)

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 Thêm

$235 USD trong 3 ngày
(1220 Nhận xét)

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 trong 1 ngày
(226 Nhận xét)

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 Thêm

$210 USD trong 3 ngày
(573 Nhận xét)

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 Thêm

$500 USD trong 3 ngày
(206 Nhận xét)

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:/ Thêm

$250 USD trong 3 ngày
(430 Nhận xét)

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 Thêm

$258 USD trong 6 ngày
(155 Nhận xét)

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 Thêm

$617 USD trong 5 ngày
(125 Nhận xét)

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 Thêm

$200 USD trong 3 ngày
(240 Nhận xét)
$235 USD trong 5 ngày
(119 Nhận xét)

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 trong 3 ngày
(73 Nhận xét)

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 Thêm

$98 USD trong 1 ngày
(439 Nhận xét)

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 Thêm

$211 USD trong 5 ngày
(154 Nhận xét)

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] Thêm

$264 USD trong 5 ngày
(156 Nhận xét)

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

$235 USD trong 2 ngày
(89 Nhận xét)

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 Thêm

$250 USD trong 20 ngày
(186 Nhận xét)

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 Thêm

$470 USD trong 3 ngày
(43 Nhận xét)

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 Thêm

$200 USD trong 3 ngày
(82 Nhận xét)

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 trong 3 ngày
(150 Nhận xét)