I've uploaded this file to a webserver but when I go to the address nothing happens
PHP Code:
<?php
if (isset($_COOKIE['admin'])) {
echo "Welcome Aboard Maytee!
}
else if (isset($_POST['submit'])) {
$connection = mysql_connect('localhost', 'user', 'pass');
$db = mysql_select_db("database");
$username = $_POST["username"];
$password = $_POST["password"];
$result = MYSQL_QUERY("SELECT * from admin WHERE username='$username'and password='$password'")
or die ("Name and password not found or not matched");
$worked = mysql_fetch_array($result);