Help with php
#8

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.
Reply


Messages In This Thread
Help with php - by iKevin - 22.04.2017, 19:31
Re: Help with php - by XStormiest - 22.04.2017, 21:33
Re: Help with php - by Vince - 22.04.2017, 21:40
Re: Help with php - by iKevin - 23.04.2017, 06:49
Re: Help with php - by MrViolence101 - 23.04.2017, 06:55
Re: Help with php - by edyun - 23.04.2017, 07:36
Re: Help with php - by BR3TT - 23.04.2017, 08:00
Re: Help with php - by Jstylezzz - 23.04.2017, 08:24
Re: Help with php - by MrViolence101 - 23.04.2017, 08:25
Re: Help with php - by BR3TT - 23.04.2017, 11:58

Forum Jump:


Users browsing this thread: 1 Guest(s)