As for your database (singular) The structure of a database works as follows:
Database->Table->Record->Field
You only need 1 database which you will have 1 table for users and 1 table for your images.
To give you an example of how this is like Pascal...
Think of a Table as a Record and each variable within the record with it's own type. (INT, VARCHAR, DATETIME, FLOAT, etc...) A database is really just a series of tables that you can access to retrive the records you want with a query string. (in the form of a SQL command)
Here is the mysql page in the PHP manual:
http://ca3.php.net/mysql
You are looking to go through this process:
1) Connect to your DB server (know your server address, username and password)
2) Select your DB
3) Run your query string! (some knowledge of SQL helps;
http://dev.mysql.com/doc/refman/5.0/en/sql-syntax.html)
4) Fetch the next record from your results into a record object. ()
5) Access the fields using the returned associated array. (Not the only way, but this is a heck of a lot easier!)
6) Repeat 3 if you need more data...
7) Close DB Connection!
Bookmarks