About design web database

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kk17
Forum Newbie
Posts: 2
Joined: Wed Feb 04, 2004 2:29 pm

About design web database

Post 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:
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

use [google]php sessions[/google] :D
kk17
Forum Newbie
Posts: 2
Joined: Wed Feb 04, 2004 2:29 pm

Thanks

Post by kk17 »

Thanks for the information, I will have a look :D
Post Reply