Jump to content

[SOLVED] Wrong parameter count for mysql_result()


Deoctor

Recommended Posts

<?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 :o

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.