my code is not working im doing something wrong , is it possible to use named parameters for the key. I am trying to make it to where i can assign a value to the variable part in my sql"where username = aaron " without hard coding it, if not how can this be accomplished please
$select = $conn->prepare("SELECT * FROM users WHERE :key = :username ") ;
$select->execute([":key"=> "username", ":username"=> 'aaron' ]) ;