Quote:
Originally Posted by BR3TT
Some people actually learn from getting help from the internet as well so get off your high horse. There's no 'one way' to learn something.
|
The difference here is giving the whole fixed code which means he doesn't have to do anything for it to work, and giving the actual help through information and pointers which will mean he has to fix it himself by the knowledge he gains. So I kinda have to agree with MrViolence here.
Vince said you have to check how you make those queries because they're still not completely right. He also said something about the php header function for redirects, you can read up on it
here and use that instead of
PHP код:
echo '<META HTTP-EQUIV="Refresh" Content="0; URL=../pages/index.php">';
Information about prepared statements
here. Make sure that you
check any user input before actually executing the query.
I'll give you a hint, for if you don't know what 'string concatenation' means;
PHP код:
....where reg_id = '$charaID'"); //This
The part where you put that 'charaID' into the prepare function, is not right. You're supposed to put a question mark there and provide that information through 'bind_param'. You can find this info and a good example by folloing
the link I provided earlier.