Forum Moderators: coopster

Message Too Old, No Replies

php mysql help needed

php mysql help needed

         

nick_laws

11:48 am on Aug 31, 2008 (gmt 0)

10+ Year Member



i have a table and in table there are rows like
'1','ok',
'2','no',
'3','yes',
'4','no',
'5','ok';

i need output but every row once only like

ok
no
yes

how i can ?

henry0

11:55 am on Aug 31, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not sure I understood the question?

if you need only once an item
you could use
SELECT DISTINCT etc....

nick_laws

12:05 pm on Aug 31, 2008 (gmt 0)

10+ Year Member



i need every row once in the table there are copy rows , i mean one row 3-4 times and i need to out one of them all

henry0

12:55 pm on Aug 31, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Follow the link, experiment and come back with a sample of your actual script

Basic of Mysql extracting data [webmasterworld.com]