Hi Sde,
Thanks for your reply & thanks for commenting & organizing my code. Now I understand my own code better :-)
I understand your explanation about using includes & will certainly use it.
My next question is as follows:-
1. How do I track the activities of a particular user once he logs in bearing in mind that he may browse from page to page & use various features on my website?
2. I have a feeling that I need to include some info from my
HTML Code:
$_SESSION['passwordprotect'] = mysql_result($result,0,"id");
but I'm not sure how.
3. If I change my $query to
HTML Code:
$query="INSERT INTO logs SET date=CURDATE(), time=CURTIME(), username='$user', password='$pass', keywords='$keywords'";
& include this in every page, will it work on every page bearing in mind that different pages have got different features for him to use?
Additional info:-
1. I have already created the necessary fields in the logs table to capture the user's username, password, keywords searched(he will be querying a database on a particular page), etc.