How can i update the record in the db? i've the ercord in db. and i was updating the record by increasing the no of rating based on the 'id' given in the table. how can i dothis in php...

Recommended Answers

All 2 Replies

the command used for this purpose is.
mysql_query("UPDATE tbl set field='$value' WHERE id='$id'");

the command used for this purpose is.
mysql_query("UPDATE tbl set field='$value' WHERE id='$id'");

thank you for this but i've the person table with an attributes of firstname,id and ratingno. if u hit the same person,the rating should be increased by one without using another row for the same person. I mean to tell like this...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.