PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I must be brain dead today as i can not get this to work. Basically i have two IF statements. I want the secound one to be executed only if the first one is true. This is probably a really simple fix but i am having trouble. Here is the code:
if ($total > 5 && $percent < 75)
{
$sql = mysql_query("UPDATE users SET `banned` = '1' WHERE `id` = '$my_id'") or die( mysql_error() );
}
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
I just got a quick question but i don't want to open another thread.
My application allows users to withdraw money, to do this a script will check the session $_SESSION['user_money'] to see how much the user has. Is this safe? Can a session value be changed easily?
If carrying a money value in a session is weak i can just make the script grab the amount of money the user has directly from the database instead of checking the session. Just would like to know what i should do