<?php
include("access.php");
mysql_select_db($dbname);
$user="ym_chaitu";
//$e=mysql_query("select email from userlogin where username='$user'");
//$email=mysql_query($e,0);
$query = mysql_query("SELECT username,password FROM userlogin WHERE username = '$user'") or die(mysql_error());
$data = mysql_result($query);
echo $data;
?>
this is my code,,when i am using it out, it is giving me an error
Warning: Wrong parameter count for mysql_result() in C:\Program Files\xampp\htdocs\chaitu\magpierss\test.php on line 8
can any one let me know where an i wrong