... then just remove the WHERE clause from the SQL statement.
Or do you mean get a list of values, to be able to draw the dropdown?
... the use of GROUP BY or DISTINCT in mysql should be investigated.
(also note that the use of sprintf, the values after the initial
string (containgn the sql statement) define what gets put in place of
the placeholders (%s) - it doesnt look like the placeholders and
values line up in your example.
http://php.net/sprintf )
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/I_fQJmEgFQMJ.
> To post to this group, send email to google-map...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-a...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
As others have said, you are asking about SQL, not the Maps API. This
is wrong group for your question.
However, you might want to investigate the LIKE keyword.