what is the way to make a login box using username and password in database? i don't know how to program for the php file to know that if the user already login or not.
you need to work on your english.
if you are talking about user authentication, try the column Tim wrote about it on this site.
or goto hotscripts.com and d/l whatever suits your needs.
Please please PLEASE! There are literally dozens of previous posts covering this subject. There are also at least 4 good books out there on PHP, not to mention the PHP manual.