Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Gabriela Arsene: "MySQL PHP Generator is really excellent! A very useful, easy to use tool and above all it is free, saving a lot of time and money to a developer! Great job! Congratulations to all the people who work at this project".
Philipp Gerber: "

The product is so easy and super built that you can achieve visible and great success after a short time. Also very much possible with the product. A class product. I'm already looking forward to the next versions and extensions. Keep it up.

Support to the product is just perfect. Each Support request is quickly and very competent solved. Also various assistance, which does not fall into a support, are also perfectly processed. There is a direct wire to the manufacturer / developer and this is notth. Thanks for the class Support".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

Table-based authorization

This kind of authorization means that user accounts are stored a database table. The table may be prepared earlier or created directly within PHP Generator.

 

 

Table structure

The basic table structure is as follows. Some additional columns should be added for support email-based features.

 

Default name

Data type

Description

user_id

integer

ID of the user. This column must be defined as autoincrement for support user self-registration.

user_name

character varying(255)

The login of the user

user_password

character varying(255)

The password of the user

 

Using an existing table

Specify the table name in the Users table fields, then select columns where user names, passwords, and IDs are stored. If passwords are encrypted, select the corresponding algorithm from the Password Encryption drop down list or enter the algorithm manually (if passwords are encrypted with a hash algorithm missing in the list like SHA512). It is also possible to provide custom functions for encrypting and verifying the passwords.

 

Using a new table

Click the Create new table... button, enter desired table and column names, then click OK. A new table will be created in the database.

 

 

To be able to log in to your website, you should create the first user (i.e. the first record in this table) with the Admin privilege manually (for example, you can do it with our MySQL Maestro). Don't forget that the password should be encrypted with the algorithm you selected. Other users can be created online via the Administration Panel that is generated automatically.

 

Customizing permissions

By default all users have the SELECT privilege granted at the application level via the PUBLIC group. Open the Permission Manager window to setup permission storage and/or customize the permissions.

 

Allow users to change their passwords

Turn this option ON to allow your end-users change their passwords themselves (the appropriate button is located in the top right corner of the window). Please note that this functionality required storing user permissions in a database table as described here.

 



Prev Return to chapter overview Next