wurst wrote:yea.
we have automatic backup btw, db and flies
Hopefully, we won't have to make use of it in my clumsy and unillumined
attempts to merge our databases. ;-}
.
wurst wrote:yea.
we have automatic backup btw, db and flies
Pirat wrote:havoc wrote:just add a table for comments with these columns:
comment id
map id
date/time
user id/name/whatever
comment text
type of comment
with type of comment being one of 3 - a pro, a con, or just comment
[...]
p.s. your primary in the maps table should be the map id
AFAIK, this won't work, as in your table, there is more than one row
for each map (because there can be more than one comment per
map). Therefore, the map id is not unique and thus cannot act
as a primary key.
Would should work, however, is using a composite primary key that
comprises all columns. I'll probably use such a key for all of my
tables except for my main table where the map name/id is the
primary key.
Pirat wrote:List data for the maps are stored in other tables, like urtmaptags,
urtmapauthors, urtmaplicenses (a map can be dual-licensed, for
instance), urtmapdownloads, etc.
havoc wrote:Pirat wrote:havoc wrote:just add a table for comments with these columns:
comment id
map id
date/time
user id/name/whatever
comment text
type of comment
with type of comment being one of 3 - a pro, a con, or just comment
[...]
p.s. your primary in the maps table should be the map id
AFAIK, this won't work [...]
i think you are confused or something m8...
havoc wrote:in your table the primary must be the map id, in my table the primary must be the comment id, with map id marking which comment is related to which map.
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
?>
Your existing page goes here
<?php
if ($user->data['user_id'] == ANONYMOUS)
{
echo 'Please login!';
}
else
{
echo 'Thanks for logging in, ' . $user->data['username_clean'];
}
?>
havoc wrote:i think pirat left us for good
Who is onlineUsers browsing this forum: No registered users and 0 guests |
Misc
|