javascript - Automatically refresh the web page after updating the database -


this question has answer here:

i have developed web page using php , mysql lanuages. but,i want refresh web page run on local host automatically after updating connected database.how can it?

use mysql_affected_rows() function returns number of affected rows on success in case of insert,update , delete , -1 on failure. check if condition success use settimeout(function(){location.reload();}, 500); refresh page automatically.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -