I am new in php.Instead of using
$result=mysql_fetch_assoc($qry)
$result['id'];
i want to pass a variable instead of id
like this
$id='id';
$result=mysql_fetch_assoc($qry)
$result[$id];
I have tried like this but not working.How can i pass a variable as argument to fetch a value from database