Page 1 of 1

About design web database

Posted: Wed Feb 04, 2004 2:29 pm
by kk17
I would like to design a web database by using php and mysql, however I do not quite understand the language structure of the PHP.

The design of my webpage would be first a login page followed by add member, delete member, and update member. Can someone please give some suggestions for the design or the structure? THX :)

Here is the problem I have got:

Initially, I was planning to write all pages in one php file, and use the if-else function to determind which page they should read.

Therefore, firstly if the $username and $pwd are empty then they will go to the login page. And after they finish entering the username and password then they will see the add-members page.

However, after they enter a new member's data, then press "add". The borwser will go back to the login page since the $username and $pwd is empty again.

Secondly, I plan to seperate the "loggin page" and "other pages" to different php files, but it makes people can directly access to "other pages" if they know the URL.

What can I do........ :cry:

Posted: Wed Feb 04, 2004 3:42 pm
by qads
use [google]php sessions[/google] :D

Thanks

Posted: Thu Feb 05, 2004 3:49 pm
by kk17
Thanks for the information, I will have a look :D