hello
i want to know that how pass parameters to mysql query inside php function
i have written function but giveing me error
error: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
function d_loader($r_ip){
global $con;
$result = mysql_query("SELECT * FROM table WHERE h_ip ='$r_ip'");
$row=mysql_fetch_array($result);}