Page 3 of 9
Re: Questions on the videos
Posted: Thu Aug 20, 2009 7:32 am
by Jackolantern
To keep all questions in the questions forum and to prevent them from being spread out, have you considered just locking this forum from non-moderator/admin posting? Are there types of user posts that do belong here?
Re: Questions on the videos
Posted: Thu Aug 20, 2009 1:26 pm
by hallsofvallhalla
well these were my first real tutorials and I myself have learned alot. I should have done things a little more organized. Its a little late now so going forward I will try to organize the videos better. Especially the next set of videos.
Re: Questions on the videos
Posted: Thu Aug 20, 2009 8:58 pm
by Noctrine
If I had the power I would have already. We already have a rules post that says only post in questions, just need to get people to read the rules first.
Re: Questions on the videos
Posted: Thu Aug 20, 2009 9:12 pm
by hallsofvallhalla
what power you need?
Re: Questions on the videos
Posted: Thu Aug 20, 2009 9:53 pm
by Noctrine
All of it?
Re: Questions on the videos
Posted: Thu Aug 20, 2009 10:39 pm
by Torniquet
lol dont want much do you :p
give him the world
should entertain him for a while
Re: Questions on the videos
Posted: Sat Sep 12, 2009 2:49 am
by UnknownUser
//tutorial on $_POST / $_GET <
http://www.tizag.com/phpT/postget.php
jpoisson wrote:
ok i ma in a fight on the attack page can just refresh the page and it will continue to fight. and then when the monster dies and you refresh it will pull another what ever it is you were fighting. (I think we need to get rid of the $_GET method and use $_POST... I am not really sure how to implement post over get but right now the game is very hackable.)
after a query is run, just do
Code: Select all
header("location: somepageofyourchoice.php");
// do header("location: thispage.php"); on everything that way it sends you out of it at the right time..
and you cant be there having fun :), for example # if($user = $_POST['hp'] == 0)
{
//you are dead,
header("location: endpage.php");
}
query ex..
Code: Select all
if(isset($_POST['submit'])){
$field1=$_POST['field1'];
$field2=$_POST['field2'];
$query="insert into table (field1, field2) values (".$field1.",".$field2.")";
mysql_query($query);
header("location: thispage.php");
// but you need to do a check for the low or high value of something and maybe bla bla check it with something else or so on..
then send you away if it's false or true..
}
Sorry if you don't get it i am kinda drunk right now 
Re: Questions on the videos
Posted: Sat Sep 12, 2009 5:39 am
by hallsofvallhalla
being drunk rocks...finally someone else who likes to post drunk

Re: Questions on the videos
Posted: Sat Sep 12, 2009 1:27 pm
by UnknownUser
hehe

i will look into what i posted i hope someone learned something out of it..
Re: Questions on the videos
Posted: Sun Oct 04, 2009 12:03 am
by siim
Hello. I have a big problem.
I've done so far all bye videos and at start all was good. When I reached adding monsters the first error came. Finally, I got rid of it and then had a few errors more but I got rid of them also. i am doing all according to the videos, but still errors are coming :S. Now i have downloaded a folder from video 13 and replaced it with my old tutorial folder. I made all the changes in phpmyadmin folder and put all in place nicely but I still errors are coming. For example, - register.php: Notice: Undefined index: classchoice in E: \ wamp \ www \ tutorial \ reguser.php on line 12
Could not register: line 12 is - $ classchoice = $ _POST [ 'classchoice'];
If i try to train spell then it says - could not register
and some thing are in the wrong place. For example, if i made a user in phpmyadmini and went through the fight, then it does not show the names and how many lives went down. In the meantime, if i go to a store then it is simply logging out. Can anyone can help me please? Best regards Siim. (sorry about bad english)

Reguser 12 line - $classchoice=$_POST['classchoice'];
