faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 3 people (33%) answered Yes
Recently 1 of 3 people (33%) answered Yes


is there a function to echo unique variables from a db when there are multiple similar entries?

Feb 26th, 2008 23:57
dman, Articles Hosting, Tom Pit, John Marc, Justin H, http://www.ttnr.org

This is NOT a PHP issue, and it would help in the future if you 
indicated the database.
In SQL there is a distinct clause
select distinct city,state from locations
select state from states group by state
What is PHP?
PHP is a widely-used general-purpose scripting language that is 
especially suited for Web development and can be embedded into HTML.
i hope that help.