I'm not sure what you mean by AES encryption. I see to recall this term appearing with wireless routers? You can find a list of implementations of AES encryption on this page:
http://en.wikipedia.org/wiki/Advanced_Encryption_Standard
It sounds like you want to create an encrypted database that your users can access by first authenticating through a web browser. Does that sound right?
If this is the case, and you are really paranoid about security, you need to make sure that data in transit between someone's browser and the webserver hosting the encrypted data is encrypted...this means your page should be hosted as HTTPS. This involves putting a security certificate on your web server and configuring it so that it serves https pages using the cert. OpenSSL is good for this if you are using apache.
Once a given user can securely communicate with your web server, you need to set up some pages to authenticate the user. PHP does this rather well and it's generally done by requiring them to enter a username and password. Apache allows you to authenticate users but if you have a really large number of users, you probably want to set up a database of users and their associated passwords and then you create a form to prompt users for user/pass (served over https of course). Once they enter a valid user/pass combination, you set a cookie on their machine (which expires instantly when the browser is closed or 'logout' is clicked) which reminds PHP that they are logged in. Try reading about [man]session_start[/man] and the other session functions.
Finally, if you want your data encrypted in the database, you need a server-side encryption mechanism. Given that your pages are to be served over https, the data is encrypted in transit from a browser to the server. Once user-submitted data arrives at the server and shows up in PHP, it is no longer encrypted but this is no big deal. Before inserting (and after retrieving) from your database of choice, you can choose to encrypt (and decrypt) the data using some fixed, key which never gets transmitted (and is known only to your server until your server gets compromised) using things like [man]mcrypt[/man] or whatever. If someone happens to view your database, they would just see gibberish. On the other hand, if your machine is compromised they can find your key and figure it out. But if your machine is compromised, you're screwed anyway.
I hope that's helpful.