Hello,
In such query I am getting ID as key and product as value. no problem
prepare("SELECT id, urun FROM anten ")
fetchAll(PDO::FETCH_KEY_PAIR)
I want to get data from two columns to the value section
id | urun | capi |
5 | ofset | 120cm |
Is it possible to get an array like below from these three columns?
array(5=>"ofset 120cm");
Or do I have to create it with loop?