Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2009, 07:36 PM
zhiichiro zhiichiro is offline
Member
 
Join Date: Mar 2009
Posts: 106
Credits: 11,761
zhiichiro
Default can't registered

can't register a new account on my site it says:

Something is Wrong!

Something is very, very wrong. Please contact Rusnak PHP Scripts about this error.


my last registered user is bloodrun =.="

any help?
Reply With Quote
  #2  
Old 06-01-2009, 07:43 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 28,481
Bloodrun
Send a message via Yahoo to Bloodrun
Default RE: can't registered

Then, go to your register.php file, find where it says:
PHP Code:
        mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1', '$email', '3', '1', '$date', '0')"); 
and place this at the very end:
PHP Code:
'' 
So that it will looks like this:
PHP Code:
        mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1', '$email', '3', '1', '$date', '0', '')"); 
Why do we do this?
Let's let BMR777 explain that one:
Adding an extra field onto the users table requires you to edit register.php so the SQL query for creating a new user matches with the new database table structure. Failure to do this will BREAK the user registration system.
Reply With Quote
  #3  
Old 06-01-2009, 07:48 PM
zhiichiro zhiichiro is offline
Member
 
Join Date: Mar 2009
Posts: 106
Credits: 11,761
zhiichiro
Default RE: can't registered

ok tnc
Reply With Quote
  #4  
Old 06-01-2009, 07:49 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,680
BMR777 is on a distinguished road
Default RE: can't registered

That error occurs only if the system cannot automatically log in the new user after registration, which normally should never happen. What modifications have you made to register.php or to the script in general?
Reply With Quote
  #5  
Old 06-01-2009, 07:51 PM
zhiichiro zhiichiro is offline
Member
 
Join Date: Mar 2009
Posts: 106
Credits: 11,761
zhiichiro
Default RE: can't registered

i cant find that..

only this :

Code:
mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1','$email','3','1', '$date', '0',''),''),''),'')");
[hr]
i didnt do anything on register.php
Reply With Quote
  #6  
Old 06-01-2009, 07:56 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 28,481
Bloodrun
Send a message via Yahoo to Bloodrun
Default RE: can't registered

Quote:
Originally Posted by zhiichiro
i cant find that..

only this :

Code:
mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1','$email','3','1', '$date', '0',''),''),''),'')");
[hr]
i didnt do anything on register.php
omg, well theres your problem.
You only need the two parenthesis at the end, it should look like this:

mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1','$email','3','1', '$date', '0','','','','')");
Reply With Quote
  #7  
Old 06-01-2009, 07:56 PM
zhiichiro zhiichiro is offline
Member
 
Join Date: Mar 2009
Posts: 106
Credits: 11,761
zhiichiro
Default RE: can't registered

change it already to

mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1', '$email', '3', '1', '$date', '0', '')");
Reply With Quote
  #8  
Old 06-01-2009, 07:58 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 28,481
Bloodrun
Send a message via Yahoo to Bloodrun
Default RE: can't registered

Quote:
Originally Posted by zhiichiro
change it already to

mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1', '$email', '3', '1', '$date', '0', '')");
No, you need those other ones, because the of spaces needs to match up with your adopts_users table.
Reply With Quote
  #9  
Old 06-01-2009, 07:59 PM
zhiichiro zhiichiro is offline
Member
 
Join Date: Mar 2009
Posts: 106
Credits: 11,761
zhiichiro
Default RE: can't registered

Quote:
Originally Posted by Bloodrun
Quote:
Originally Posted by zhiichiro
i cant find that..

only this :

Code:
mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1','$email','3','1', '$date', '0',''),''),''),'')");
[hr]
i didnt do anything on register.php
omg, well theres your problem.
You only need the two parenthesis at the end, it should look like this:

mysql_query("INSERT INTO ".$prefix."users VALUES ('', '$username', '$pass1','$email','3','1', '$date', '0','','','','')");
done. still can't register
Reply With Quote
  #10  
Old 06-01-2009, 08:04 PM
Saphira Saphira is offline
Member
 
Join Date: Jan 2009
Posts: 89
Credits: 5,745
Saphira
Default RE: can't registered

how many fields do you have in your adopts_users table in your database?
Reply With Quote
Reply


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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A way to show newest registered member? Xius Questions and Supports 3 04-15-2009 07:36 PM
1,021 Registered Users kab012345 Other Chat 1 03-22-2009 05:38 PM


All times are GMT -5. The time now is 01:52 PM.

Currently Active Users: 572 (0 members and 572 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636