0

How to save a data on a HTML website to be saved permanently (when I close the explorer, the data stays there forever until editing).

1 Answers1

1

you need database to do that job, it must be some-kind of setting in which once page is loading should fetch to db that setting and then display it, Also you have to give user the opportunity to change that setting

<?php //connect to db
 //run your query, lets say the variable hold values from DB is $content
?>
.....
.....
<body>
<div>
 <?php echo $content; ?>
</div>

.....
.....
Fas M
  • 429
  • 2
  • 11
  • there is no way then, and in case of his problem nothing state about loading or reloading the page, he can use even Ajax to do so, but at the end of the day DB must be there @Mawg – Fas M Feb 11 '15 at 09:56
  • That's so helpful fas M. Thanks .. I will try it – Mohamed Sayed Feb 14 '15 at 14:05