php - Mysql - Simple select query returns dublicate values? -


this how query looks like: (simplified)

select * posts user='37' order date desc 

i ave 1 row in table, still reason returns 2 rows same. @ first thought messed loop, tried printing returned array out print_r() , returns 2 rows.

i tried searching, didn't find similar issues. remember friend of mine had same issue @ school, i'm sure aint ones. didn't use right search terms, heh.

any ideas?

are sure have 1 row in table? if so, seems problem must happening outside of sql.

what doing outside of query? seems source of issue. mention loop: adding query result array twice? or array persisting between calls without being reinitialized (in other words, result of previous query remaining in array when don't expect to)?


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -