For this request:
$sql='select col from table where other_col=?';
I am currently receiving the returned data as follows:
$data=$statement->fetch()['col'];
This is not very good for me. Is there a better way to do this or is it perfect as it is?
source
share