If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > Help With My Online Game (Database Help)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-23-10, 04:50
pro-gamer.me pro-gamer.me is offline
Registered User
 
Join Date: Jul 2010
Posts: 4
Question Help With My Online Game (Database Help)

Hello,

Iv done everything i can think but it's still not working,

The Prob is when someone sign-up it says "Your account has been created successfully!" and and then when you try to login it keeps saying "Name and password not found or not matched"


Have a look www.pro-gamer.me/test
Reply With Quote
  #2 (permalink)  
Old 07-23-10, 05:14
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by pro-gamer.me View Post
... then when you try to login it keeps saying "Name and password not found or not matched"
your login logic is wrong
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 07-23-10, 07:31
pro-gamer.me pro-gamer.me is offline
Registered User
 
Join Date: Jul 2010
Posts: 4
Sorry But im new to this stuff what part shall i edit?

Here ill upload the Login.PHP & Register.PHP

for you
http://rapidshare.com/files/40856574...gister_php.rar
Reply With Quote
  #4 (permalink)  
Old 07-23-10, 07:50
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,407
Quote:
Originally Posted by pro-gamer.me View Post
Sorry But im new to this stuff what part shall i edit?

Here ill upload the Login.PHP & Register.PHP
This is not a PHP forum.

I think this thread should be moved.
Reply With Quote
  #5 (permalink)  
Old 07-23-10, 07:59
pro-gamer.me pro-gamer.me is offline
Registered User
 
Join Date: Jul 2010
Posts: 4
Sorry But Im new to this stuff, and i need help with the database read the title
Reply With Quote
  #6 (permalink)  
Old 07-23-10, 08:28
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
You need help with the PHP interacting with your database, not the database itself. The PHP guys can probably explain the difference a bit more eloquently than I can.

Moving to the PHP forum.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #7 (permalink)  
Old 07-23-10, 10:22
pro-gamer.me pro-gamer.me is offline
Registered User
 
Join Date: Jul 2010
Posts: 4
Quote:
Originally Posted by pro-gamer.me View Post
Hello,

Iv done everything i can think but it's still not working,

The Prob is when someone sign-up it says "Your account has been created successfully!" and and then when you try to login it keeps saying "Name and password not found or not matched"


Have a look The Generic RPG
Here is some of the table structer for the database.
-- Table structure for table `grpgusers`
--

CREATE TABLE `grpgusers` (
`id` int(10) NOT NULL auto_increment,
`username` varchar(75) NOT NULL default '0',
`password` varchar(75) NOT NULL default '0',
`exp` int(30) NOT NULL default '0',
`money` int(30) NOT NULL default '1000',
`bank` int(30) NOT NULL default '0',
`whichbank` int(2) NOT NULL default '0',
`hp` int(10) NOT NULL default '50',
`energy` int(10) NOT NULL default '10',
`nerve` int(10) NOT NULL default '5',
`workexp` int(10) NOT NULL default '0',
`strength` int(10) NOT NULL default '10',
`defense` int(10) NOT NULL default '10',
`speed` int(10) NOT NULL default '10',
`battlewon` int(10) NOT NULL default '0',
`battlelost` int(10) NOT NULL default '0',
`battlemoney` int(20) NOT NULL default '0',
`crimesucceeded` int(10) NOT NULL default '0',
`crimefailed` int(10) NOT NULL default '0',
`crimemoney` int(20) NOT NULL default '0',
`points` bigint(20) NOT NULL default '0',
`rmdays` tinyint(5) NOT NULL default '0',
`signuptime` int(20) NOT NULL default '0',
`lastactive` int(20) NOT NULL default '0',
`awake` int(5) NOT NULL default '100',
`email` varchar(75) NOT NULL default '',
`jail` int(1) NOT NULL default '0',
`hospital` int(1) NOT NULL default '0',
`hwho` varchar(30) NOT NULL,
`hwhen` varchar(30) NOT NULL,
`hhow` varchar(30) NOT NULL,
`house` int(3) NOT NULL default '0',
`gang` int(10) NOT NULL default '0',
`quote` text NOT NULL,
`avatar` varchar(50) NOT NULL,
`city` int(3) NOT NULL default '1',
`admin` int(1) NOT NULL default '0',
`searchdowntown` int(3) NOT NULL default '100',
`job` int(5) NOT NULL,
`ip` int(20) NOT NULL,
`eqweapon` int(20) NOT NULL,
`eqarmor` int(20) NOT NULL,
`potseeds` int(20) NOT NULL,
`marijuana` int(20) NOT NULL,
`cocaine` int(20) NOT NULL,
`style` int(3) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=98 ;

-- --------------------------------------------------------
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On