Friday, February 24, 2012

help me pleeease, im so confused

ok i have a mysql database setup
i also have an image gallery setup on my site where people can upload their own pics after registering

in another section of my site i have a message forum where people can register to post messages
now heres the problem

what i wanna do is so that when someone signs up in the image gallery section they can use the same usernam and password to sign in to the forum and vise versa
i have no idea how to do this, its really bugging me :(

pleeeease helpThe solution depends on the complexity of your requirement.

If you do not require separate privelages for individual pages of the web site, then create a single users table.|||how do i create a single user table?
im so sorry but im an absoloute beginner and have noo idea what that even means|||Simplified,

Create table users
(
username varchar2(15),
password varchar2(15)
);|||where do i type that?|||The MySQL Console.|||lol where is that?

maybe i should say this

i got the forum script from www.phpbb.com and the image script from http://www.4homepages.de

if that helps in anyway, i just uploaded them on to my subdomains and linked them to the mysql database i created in my hosting control panel
in the control panel theres no option for any console of any sort, all i can do is create new users and edit passwords|||If you need to execute DML statements then you need access to a "console" or "interface" that can accept the statements and pass them to the DBMS.

As an alternative consider editing the source code for both scripts, such that both access the same users table.|||i downloaded a program and am now editing the tables
i found this

4images_users

inside that i found these values:

column_____________type____________null

user_name varchar(255) no
user_password varchor(255) no9

do i change these? to the stuff u wrote up there?

thats for the image gallery
for the chat forum it has these settings phpbb_users

column __________type______________ null
username varchar(25) no
user_password varchar(32) no

please help me|||Script A - Select * from userA
Script B - Select * from userB

userA
---
username
password

userB
---
username
password

users_AB
---
username
password

A temporary solution may be,

Drop table userA;
Drop table userB;

Create view userA as select * from users_AB;
Create view userB as select * from users_AB;

I would recommend not using the scripts, instead write your own code specifically for your requirements. Furthermore the database tables can be designed according to your specifications.|||thats greek to me
forget it i give up :(

thanks very much for all ur help anyway, i appreciate it very much

No comments:

Post a Comment