How to build a form with php inside wordpress and consume an external database?

asdriel

Member
Apr 26, 2019
198
17
18
www.bantu-2rsn.com
How to build a form with php inside wordpress and consume an external database?
for example I want to search for a student registration number, the system database is on the local server that has access to the net, and my website is wordpress (online), so I need to query it on my external database to present the results on my website
 

rasesh

New member
Sep 26, 2019
13
5
3
How to build a form with php inside wordpress and consume an external database?
for example I want to search for a student registration number, the system database is on the local server that has access to the net, and my website is wordpress (online), so I need to query it on my external database to present the results on my website
Just make a php file named "external_data.php" with the external database configuration and the html form.
then just process the data.

place the file in public or www directory and you can access it like this.
(www.yoursite.com/external_data.php)

hope this helps.
 
  • Like
Reactions: asdriel

Forum statistics

Threads
69,229
Messages
908,458
Members
237,126
Latest member
skzh6210

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu