Wordpress + Mysql Config + PHP file -> not working

Codes here !

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 9
Joined: Thu Oct 29, 2020 5:19 am

Thu Oct 29, 2020 5:20 am

Hi there,

I am trying to create a custom registration form and connect the file to mysql using a config.php file. I created the file with a tutorial.

I placed both the config.php and the registration.php in a "page-templates folder" inside the "theme folder". Using wordpress "add new page" I am able to select the registration.php file as a template. I am able to open the newly created page and type in information like username and password. I am able to press submit and I get redirected to a new page.

The username and password are not in the dedicated table of the mysql database - hence I assume that the config.php file is not working properly. How do I make it work?

I would really appreciate your help.

User avatar
php-forum GURU
php-forum GURU
Posts: 1222
Joined: Mon Feb 22, 2016 5:52 pm

Thu Oct 29, 2020 2:06 pm

Taking this one step at a time:

Are you trying to find user details in your database from the registration.php form?
New php-forum User
New php-forum User
Posts: 4
Joined: Tue Mar 30, 2021 9:02 pm

Tue Mar 30, 2021 9:36 pm

You can search that tutorial online.
Link to Google
Post Reply