echo problems in PHP

后端 未结 1 1093
北恋
北恋 2020-12-20 02:07

I dont know how to repost questions so im just gonna link my old post here some item won't echo after putting some condition in php

although some problems were

相关标签:
1条回答
  • 2020-12-20 02:26

    I have finally discovered what went wrong with my problem. Although my codes became longer that ever.

    So here's what I did, I added new query for my conditions "pending", "notapproved" and "approved" its the same query actually, i just added AND e.confirmation LIKE 'Pending' in the newupload page and AND e.confirmation LIKE 'Accepted' OR e.confirmation LIKE 'NotAccepted' in the home page. (note that i put this together with the query and created $sql2,$query2,$total2 and $result2 and since I have 1 code for page number, I already fixed that as well)

    At the same time, instead of having WHILE first then If Statement, I have reversed it. And have done 2 whiles.

    You could check in my codes and apply this :)

    Thanks to @stefgosselin for not putting me down and the one who "ONLY" helped me in someways. I just tried it now, all i need to do now is to correct my order by. Thanks. Hope this could help others with the same problem.

    0 讨论(0)
提交回复
热议问题