Hi, I'm trying to use the array_unique method in php to get the unique values of the array but what i get is just one value and the other values deleted by the method , the values in the array are (Pro CSharp 2008 and the NET 3.5 Platform , Beginning C Sharp 2008 and Beginning C Sharp 2008 ) and the value only i got was Beginning C Sharp 2008 but Pro CSharp 2008 and the NET 3.5 Platform doesn't exist in the returned array , so what is the problem and who to solve it ?
sedalnas
0
Newbie Poster
Recommended Answers
Jump to PostShow your code example.
Jump to PostIt would be helpful if you also posted the original array's contents.
Jump to Postcan i use the mysql_fetch_array twice in different places in my code
Yes
Probably the easiest solution is to build a complete unique array in the first loop, and use that
My suggestion would be to reset the pointer to the query result. IMMEDIATELY BEFORE the SECOND while put
mysql_data_seek($rs, …
All 10 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
sedalnas
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Dragonbaki
4
Junior Poster
sedalnas
0
Newbie Poster
sedalnas
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
hielo
65
Veteran Poster
sedalnas
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.