MySQL (about 1 database, many tables)
| From: | Richard | Date: | Thu, 05 Apr 2001 23:33:24 +0000 |
| Subject: | MySQL (about 1 database, many tables) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-47341@lists.php.net to get a copy of this message | ||
Greetings.
As "Frank K" wrote for some days ago, I was into the same thing, but I
need help with the following: I am creating a messaging central, which is
quite about the same as a web community if you like, or whatever. The thing
is, I need to save all the users, mailboxes and login dates... But I only
have one database, but infinite tables. Does anyone has any examples or
tips? The following didn't go very well, but probably because I suck in
MySQL:
$query = "CREATE TABLE $tb_name ( UiD bigint(20) NOT NULL
auto_increment, uName text NOT NULL, uPwd text NOT NULL)";
What I was trying to do is to create one table which is called "users",
which contains :
uID (unique id, incremental!) uOnline (boolean) uName and uPWD
And some other stuff, but as you can see, it did not go very well... Any
help is appriciated!
- Richard