+ 1

How can we store data from website to database through php?

what is actual role of PHP in communicating website and database?

25th Apr 2017, 12:49 PM
Zulkarnain Faizan
Zulkarnain Faizan - avatar
3 ответов
+ 4
This is a single page form submit to Mysql code.. (due to no db access on Code Playground, you will get fatal error msg if you run it there) https://code.sololearn.com/wRG5Cck4ilU4
25th Apr 2017, 1:11 PM
Calviղ
Calviղ - avatar
+ 3
https://www.sitepoint.com/publishing-mysql-data-web/
25th Apr 2017, 12:53 PM
Nithiwat
Nithiwat - avatar
+ 1
PHP provides a connection to database and interface to store and retrieve data from it, also PHP can generate parts or whole pages for website depending of that data. Example is this Sololearn forum - it has not static pages with topics and answers, all this pages are generated by site engine working on PHP or similar technology that reads corresponding data stored in database and then shows it to user in a way you can see.
25th Apr 2017, 12:55 PM
Jeth
Jeth - avatar