In my program I used to store the datas under date.But when many datas under one date comes.It fetchs and display the whole dates (repetation occurs). Help !!!
So it's not a storage problem - but how you display it on the page - you don't want to repeat the date? Before you start create a variable called $lastDate and give it a null value. Then each row you process just compare the date with $lastDate. If they match don't echo/print the date. If they don't then echo/print the date and update the variable with the new value.
It would be better to share your code so others could invetigate. It's hard to presume what you're doing there
This is the code to fetch an attribute from the database and print it in a select box !!! But when I select the date (since there exist same date in many rows) it is repeated many times.
Well... you could create an array and use a for loop. After that use array_unique to select the data. Check the manual, try looping with data from array, learn array_unique and your app will work.