this is my code... docrow('&ddname') is not passing.if I am using docrow('Jhon') then my code is all right.it give 3 number of row in returns.but what's wrong with docrow('&ddname')? it give me 0 row in returns.though there have 3 rows!
<?php 
$ddname="Jhon"; 
include 'config.php';
//my database connection
function docrow($name){
    global $conn;
    $sqlquery=mysqli_query($conn,"SELECT id,name,docname,discount,docget from income where docname='$name'");
    $countrow=mysqli_num_rows($sqlquery);
    return $countrow;
}
echo docrow('$ddname');
?>
 
     
     
     
    