call to undefined function mysql_connect()
Try checking to see if the PHP MySQL extension module is being loaded: <?php phpinfo(); ?> If it's not there, add the following to the php.ini file: extension=php_mysql.dll Save and Restart You Apache HTTP Server
call to undefined function mysql_query()
$sql = mysql_query("SELECT * FROM login WHERE username = '".$_POST['username']."' and password = '".md5($_POST['password'])."'"); $row = mysql_num_rows($sql);
Source: stackoverflow.com