Skip to content
Advertisement

Insert Only One Record In MYSQL database using php

i am working on a project where i want to insert only one record in a specific time.

For Example: in the project client rate a contractor only once.(when the construction is in working) once he rated he cannot rate second time whatsoever.

I checked online but didn’t find what i am looking for.

Now I have 2 Ideas.

1- Either insert checkboxes and make them disable permanently, once the rating is done(with server side validation).

2- Rate according to numbers (like 7/10) and display them.

which one is batter strategy to opt.

Code Part:

CheckBox Solution Code(no solution available on google on serverside validation):

JavaScript

Also checked this on stackoverflow (but this is not i am looking for):

[an example serverside solution link][1]

Number Solution:

JavaScript

Is There any php way(or both ways) to implement the solution of my problem?

PS: i am not very expert in web devolepment, sorry if any mistake i am doing.

Advertisement

Answer

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement