0
<?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

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by nav33n
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.