Search found 16 matches

by Rackdos
Mon Apr 20, 2015 1:55 pm
Forum: Beginner Help and Support
Topic: Train Units
Replies: -1
Views: 790

Train Units

i want to make a browser game like tribal wars. i have already created users, a main page, units, resurces. in database each user has 100 food. i want to train warriors. each warrior costs 10 food. i dont know how to put this on code. can anyone help me?
by Rackdos
Wed Apr 15, 2015 11:50 am
Forum: Beginner Help and Support
Topic: Registration
Replies: -1
Views: 2512

Re: Registration

that java code isnt working for length..how i put him here? function submitreg() { var form = document.reg; if(form.username.value == ""){ alert( "Enter username." ); return false; } else if(form.password.value == ""){ alert( "Enter password." ); return false;...
by Rackdos
Tue Apr 14, 2015 1:36 pm
Forum: Beginner Help and Support
Topic: Registration
Replies: -1
Views: 2512

Re: Registration

what do you think about my new code? its working now, but i cant put max length neither only unique username? can you help me? <?php include_once 'class.user.php'; $user = new User(); // Checking for user logged in or not /*if (!$user->get_session()) { header("location:index.php"); }*/ if ...
by Rackdos
Mon Apr 13, 2015 11:50 am
Forum: Beginner Help and Support
Topic: Registration
Replies: -1
Views: 2512

Re: Registration

FINALLY i put the data on the data base. now i just want to make some restriction. how can i restrict the number os usernames to 1 and its length? i used this if its empty: <script language="javascript" type="text/javascript"> function submitreg() { var form = document.reg; if(fo...
by Rackdos
Mon Apr 13, 2015 8:05 am
Forum: Beginner Help and Support
Topic: Registration
Replies: -1
Views: 2512

Re: Registration

i put this code

Code: Select all

mysqli_query($conn, "INSERT INTO user (username, password, email) VALUES ($username, $password, $email)");
and it gave me that error...i really want to create a registration page but im stuck for 5 days on this. when i click register the data doesnt go to the database
by Rackdos
Sun Apr 12, 2015 11:16 pm
Forum: Beginner Help and Support
Topic: Registration
Replies: -1
Views: 2512

Re: Registration

i really apreciate your help, thanks. but i inserted your code mysqli_query($conn, "INSERT INTO UserNameTable (userNameField, userPassField, userEmailField) VALUES ($username, $password, $email)); and it gave me a sintaxe error on line 30, on post:method...i want to understand this, but im real...
by Rackdos
Sat Apr 11, 2015 11:53 pm
Forum: Beginner Help and Support
Topic: Registration
Replies: -1
Views: 2512

Re: Registration

i visited those links before...but still cant insert data in my database. dont know what code i must use. im a begginer and that site is really confusing to me. i have already created a page with,username, password and email, and a button that says register. i want to record data on my data base whe...
by Rackdos
Sat Apr 11, 2015 7:52 pm
Forum: Beginner Help and Support
Topic: Registration
Replies: -1
Views: 2512

Re: Registration

thanks for your comment. but i dont know whats the code to place the data on the database.
by Rackdos
Sat Apr 11, 2015 7:20 pm
Forum: Beginner Help and Support
Topic: Registration
Replies: -1
Views: 2512

Registration

hi, im just trying to create a registration page now...but when i click register i cant put the data on the database. here is my code, can you tell me what i have to do, please? <?php function connect(){ $conn=mysqli_connect("localhost","root","","game"); } fu...
by Rackdos
Sat Apr 11, 2015 11:45 am
Forum: Browser Based MMO 2.0
Topic: Video 9
Replies: -1
Views: 5351

Re: Video 9

hi, im just trying to create a registration page now...but when i click register i cant put the data on the database. here is my code, can you tell me what i have to do, please? <?php function connect(){ $conn=mysqli_connect("localhost","root","","game"); } fu...

Go to advanced search