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
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.