[PHP-DB] Session and Access Privilages.

2012-03-29 Thread Vinay Kannan
Hey, I am working on the application, thought its not OOP currently, I plan to take it further in a year or so. Right now, I have 4 access levels which define what the users can do on the application. Based on the access levels defined, a session varialble is set called $_SESSION['authtype'], and

Re: [PHP-DB] Session and Access Privilages.

2012-03-29 Thread Trinath Somanchi
Hi- Since you are checking the authtype variable in the environmental variable for each page which is requested, There cannot be any chance for a intruder to get access to the page. But then, for an enhanced security, do maintain a table in db with relation between authtype and access to page and

Re: [PHP-DB] Session and Access Privilages.

2012-03-29 Thread Govinda
Hey, I am working on the application, thought its not OOP currently, I plan to take it further in a year or so. Right now, I have 4 access levels which define what the users can do on the application. Based on the access levels defined, a session varialble is set called

Re: [PHP-DB] Session and Access Privilages.

2012-03-29 Thread Vinay Kannan
Yup, With some help from Jey earlier today, I was able to figure it out.. I only realized it later, how easy it was since all the auth types were being set already, the same piece of code at the beginning of every page should have been good ! Thanks, Vinay On Thu, Mar 29, 2012 at 7:28 PM,

[PHP-DB] Flow of PHP testClass

2012-03-29 Thread Rikin Parekh
Hi Guys, Given below is a PHP script. Can someone help me with the output of the code. According to my understanding the output should be 3, 50, 20, 10. Can someone elaborate on the same and provide me an explanation on the flow? Thanks a lot in advance. ?php class TestClass { var $a =20; var

[PHP-DB] RE: [PHP-WIN] Flow of PHP testClass

2012-03-29 Thread Jim MacDiarmid
Yes, I believe your understanding is correct... This is my understanding as well. In line 1 below, you are creating a new object and using the class constructor to initialize $a and $b. In line 2 below, you are creating a new object, with $a and $b's default values. In line 3 below, $a and

[PHP-DB] search of data base - again

2012-03-29 Thread Ethan Rosenberg
Sending again, since no response on 1st try. Ethan == Dear List I am trying to insert data into a table, with no success. I have two tables: mysql describe Visit3; ++--+--+-+-++ | Field | Type | Null | Key | Default

Re: [PHP-DB] search of data base - again

2012-03-29 Thread Matijn Woudt
On Fri, Mar 30, 2012 at 1:10 AM, Ethan Rosenberg eth...@earthlink.net wrote: Sending again, since no response on 1st try. Ethan == Dear List I am trying to insert data into a table, with no success. I have two tables: mysql describe Visit3;