Jump to content

Mafia Game Registration Code


MDizzleFresh

Recommended Posts

Hello everyone. I am in need of help. Below are parts of my script for my registration code. All I am getting is a mysql_error, and nothing is showing up after that. The URL to the site is www.mafiasyndicate.co.cc if you would like to register, and see what I am talking about.

 

Below are parts of the code, that I think may have cause the error:

 

Date, to show the start date of the users account

$today = date("F j, Y, g:i a");

 

Part where I changed the ereg to preg

if (preg_match('[^A-Za-z]', $reg_username)) {

$message="Your username can only contain letters.";

}elseif (!preg_match('[^A-Za-z]', $reg_username)) {

 

MySQL Stuff

mysql_query("INSERT INTO `users` ( `id` , `username` , `password` , `money` , `regged` ,`startdate` ,`email` , `location` , `homecity` ,`ip` , `r_ip`, `referal`)

VALUES ('', '$reg_username', '$reg_password', '500', '$time', '$today', '$email', '$location', '$location', '$ip', '$ip', '$referal2')") or die(mysql_error);

 

Those are the different parts, that I think may have caused the error. Please help me anyone, if you can.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.