im new to php im and testing stuff to make a webpage heres a few thing i wasnt able to find out.
-how do i make a script to verifie for fals true or invalide information: like a member of my webpage files in a application where he enter his name, email, rank, social rank. now the script check to see if there all ready a name or email existing in the data base if yes it doesnt insert the info and sends back whats all ready in ex: name: bigdude is all ready in the data base.
then when the user recivies his email click on the link to enter his password (havent have clue yet how to do this yet heheh), then the script check to see if he didnt change any thing... check in the data base to see if the name, email all ready exist if on or other does exist retures error : dont try to hack the system 😛, naturely i dont want him to use an other name and enter his own password... so the script check to see if the password in the table is blank. if all this is ok lets him insert the info.
(forgot how do i make a script to check so he doesnt leave any blank spot befor submiting the info)
-how do i make to select btw a certain number to an other number. like
$warrior = Warrior
$level=56
$warrior = array("$level<=49" => "Warrior", "$level==50-54" => "Champion",
"$level==55-59" => "Crusader", "$level==60" => "Warlord");
print ("you are a $warrior of level $level so your title is ${$warrior}");
wich should display: you are a warrior of level 56 so your title is Crusader
all so any one got a good site explaining exacly what do do all simblose mean in a code like :
$ss='test[hello]';
if(ereg("([[])[([]])",$ss,$out)) ${$out[1]}[$out[2]]= "hello world";
echo "view --->" . $test[hello]; #display hello world
whats does [] do and ([[])[([]])would be nice to have it say simple enough. all when do we use goble stuff functoins and class and how do they work might keep me pretty busy once i get this... im making a pretty complex webpage.
all so is there a way make a session and it retrives stuff in the data base so i can fetch that each time in the session instead of making a script that check in the data base each time for its id, or his flag...
email me the answer or post it here... if some one can help me make my webpage email me and i can say to you what exacly im trying to do.. i just need a few hints information to do it.
i talk to much hehehe any thanks in advance for you help 🙂