Parse error: syntax error, unexpected 'mysql_query' (T_STRING) Line 30: if($count == 1 && $row[3]==md5($upass) && $row[2] == 1) { $row[1] = $email; $signedin = 1 mysql_query("UPDATE `users` SET `signedin`=1 WHERE `Team`=1"); header('Window-target: content'); header('Location: oma_admin.php'); } elseif($count == 1 && $row[3]==md5($upass) && $row[2] == 2) { $row[1] = $email; $signedin = 1 mysql_query("INSERT INTO users(signedin) VALUES('$signedin') WHERE team='$row[2]'"); header('Window-target: content'); header('Location: fbk_admin.php'); } cant seem to figure this out by searching the internet last part of the php else { <script>alert('Username / Password Seems Wrong !');</script> } ?>
The original mysql functions are deprecated in php 5.5+. You should look at using PDO, or MySQLi, or another method to handle the database interaction.