i want to get an array like this:
$autocompletiondata = array(
3 => 'Hazel Grouse',
4 => 'Common Quail',
5 => 'Common Pheasant',
6 => 'Northern Shoveler',
7 => 'Greylag Goose',
8 => 'Barnacle Goose');
out off this SQL-Query:
SELECT id, name FROM tbl_1
Can anyone tell me how to do this?