bakraa
01-17-2006, 10:24 AM
Hi i am new to PHP,
I have a logfile with 18 columes which I transfer to MySql database in a table called "logfile".
I have one more table name "users" with columes `id` `pass` and info.
I have a registration system where the adminstrator creat users and there information are saved in the
"users" table.
Now what I am trying to do is to show the users when they login there information from the "logfile" table.
FOR EXAMPLE:
in the "logfile" table there is a colume named 'members' which have entries like A1,A1,A5,A7,A1,A5...
i want to assign all the entries having 'A1' in them to the user created by the admistrator, so that when he
login with the newly created username and password, he can see information from his log.
$query_log = "SELECT * FROM logfile where `members` LIKE '_A11_'";
i am able to show all the entry related to member A11 by using this, and have added the page link to a User 'user1' so when user1 login to his
account he sees all the data related to A11. But this is very static and not a good approch, if i have 200 users i have to assign 200 pages
with the information, and it is also not secure.
Please help me with this. and Guide me where i am going wrong... ???:confused:
I have a logfile with 18 columes which I transfer to MySql database in a table called "logfile".
I have one more table name "users" with columes `id` `pass` and info.
I have a registration system where the adminstrator creat users and there information are saved in the
"users" table.
Now what I am trying to do is to show the users when they login there information from the "logfile" table.
FOR EXAMPLE:
in the "logfile" table there is a colume named 'members' which have entries like A1,A1,A5,A7,A1,A5...
i want to assign all the entries having 'A1' in them to the user created by the admistrator, so that when he
login with the newly created username and password, he can see information from his log.
$query_log = "SELECT * FROM logfile where `members` LIKE '_A11_'";
i am able to show all the entry related to member A11 by using this, and have added the page link to a User 'user1' so when user1 login to his
account he sees all the data related to A11. But this is very static and not a good approch, if i have 200 users i have to assign 200 pages
with the information, and it is also not secure.
Please help me with this. and Guide me where i am going wrong... ???:confused: