Returns Blank

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I can't figure this out, it just shows blank...
$user=$_POST['user'];
$pass=$_POST['pass'];

mysql_connect($host,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");

$query = "SELECT credits FROM krypto WHERE user = '" . $user . "' AND
pass = '" . $pass . "'";
$result = mysql_query($query);


if (!$result) {
   echo 'Could not run query: ' . mysql_error();
   exit;
}
echo mysql_result($result, 3);

mysql_free_result($result);

mysql_close();

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux