[PHP-DB] Re: [PHP-WIN] Select the specific user data from the database

2010-09-06 Thread Richard Quadling
On 5 September 2010 12:21, nagendra prasad nagendra802...@gmail.com wrote: Hi Experts, I have a mysql database. What I want is that when a user login he can able to see his entries only, so that he can delete, add or edit his entries only. I have 2 different tables one for user details and

[PHP-DB] Re: [PHP-WIN] Select the specific user data from the database

2010-09-06 Thread Paul Vatta
You could also try the following approach: - on the table, have an INSERT trigger add the username to a column named CREATE_WHO (this can be extended to UPDATE operations too, but this probably isn't necessary in your example) - create a view based on select * from table where CREATE_WHO =