0

I have hosted my webpage by using 000webhost.com. And now I want to collect my web page form data to a database. Please help me.

12th Jan 2018, 9:43 AM
H.B Chamod Thakshila Bandara
9 odpowiedzi
+ 2
Thank you for your reply brother. But I don't want to send form data to itself. I want to collect data to a database. Please help me.
12th Jan 2018, 3:08 PM
H.B Chamod Thakshila Bandara
+ 2
Thank you very much brother.
12th Jan 2018, 4:01 PM
H.B Chamod Thakshila Bandara
+ 1
then use php to insert the data is that the problem?
12th Jan 2018, 3:34 PM
Hexer Beta
Hexer Beta - avatar
+ 1
Yes I want to connect my server and database to html form using php. But I don't know how to do it. Please send me codes...
12th Jan 2018, 3:36 PM
H.B Chamod Thakshila Bandara
+ 1
ok
12th Jan 2018, 3:57 PM
H.B Chamod Thakshila Bandara
+ 1
$connection = new mysqli([name of the server], [sql username], [sql password], [database you want to accses to]); $sql = "[put your query here]"; $result = $connection->query($sql); if you want an array of what you got do $result->fetch_assoc() is this the answer you were looking for? if so just read this whole series of tutorials https://www.w3schools.com/php/php_mysql_intro.asp
12th Jan 2018, 4:00 PM
Hexer Beta
Hexer Beta - avatar
0
whats the problem? just create a form with the action set to "" and the form will send itself to the page
12th Jan 2018, 11:23 AM
Hexer Beta
Hexer Beta - avatar
0
thats easy wait s minute
12th Jan 2018, 3:55 PM
Hexer Beta
Hexer Beta - avatar
0
also look up stuff before you ask
12th Jan 2018, 4:02 PM
Hexer Beta
Hexer Beta - avatar