Questions on the videos
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Questions on the videos
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?
The indelible lord of tl;dr
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Questions on the videos
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
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.
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Questions on the videos
what power you need?
Re: Questions on the videos
All of it?
Re: Questions on the videos
lol dont want much do you :p
give him the world
should entertain him for a while
give him the world

should entertain him for a while
New Site Coming Soon! Stay tuned 

- UnknownUser
- Posts: 51
- Joined: Tue Sep 08, 2009 2:54 pm
Re: Questions on the videos
//tutorial on $_POST / $_GET < http://www.tizag.com/phpT/postget.php
query ex..
Sorry if you don't get it i am kinda drunk right now
after a query is run, just dojpoisson 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.)
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");
}
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

When a programming language is created that allows programmers to program in simple English, it will be discovered that programmers cannot speak English. ~Author Unknown
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Questions on the videos
being drunk rocks...finally someone else who likes to post drunk 

- UnknownUser
- Posts: 51
- Joined: Tue Sep 08, 2009 2:54 pm
Re: Questions on the videos
hehe
i will look into what i posted i hope someone learned something out of it..

When a programming language is created that allows programmers to program in simple English, it will be discovered that programmers cannot speak English. ~Author Unknown
Re: Questions on the videos
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'];

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'];
