php - While loop problems -
I put the following code together, the problem is that the loop is returning only one data data every time < / P> I should get several dates, and then below should be every group of stability, for the first time the first line of the loop is present, as well as the data of the loop However, is not it released? Any ideas where I can improve it? Thanks
change = (because you only turn it into internal loop You only have intestines In that loop is required to use a different variable. $ result = mysql_query ("SELECT * FROM" .TBL_FIXTURES "WHERE compname = '$ COMP_name' and date = '$ line [date]' as of 'date') ;
($ line = mysql_fetch_assoc ($ result)) with
$ result1 = mysql_query ("SELECT * FROM" .TBL_FIXTURES. "Where compname = '$ comp_name' And date = '$ line [date]' as of the date ''); What happens to your existing code is that after the internal
executing
, the next call (in the outer loop ) After mysql_fetch_assoc ($ result)
always
Comments
Post a Comment