HAVOCWIZARD Posted June 20, 2007 Share Posted June 20, 2007 guys, i read the header post but dont understand so well, i do my complete search and the minute i has output is posts the found counter, i have tride putting it in diffrent places but, it print n the wrong place, how can i reset it, or if i post it make it post on top of the result that can aslo work, this is what i post... <?php //This is only displayed if they have submitted the form if ($searching =="yes") { ?> <p><br /> <span class="textHeader">found <?php echo ($result_fnd); if($result_fnd > 1){echo " results";}else{echo " result";}?></span> <br /> <span class="textField"> <b>For:</b> " <?php echo stripslashes(htmlspecialchars($_POST["find"])); ?> " </span> <br /> <br /> <?php $result_fnd is the amount i found on the query, very big one and confidential lol, run my query the call function and post the result everytime i find something perfectly matched, but i just need to reset my counter how can i , can anybody help..pls Link to comment https://forums.phpfreaks.com/topic/56334-need-help-with-stupid-thing/ Share on other sites More sharing options...
GingerRobot Posted June 20, 2007 Share Posted June 20, 2007 I'm a little confused. Do you mean that when you echo $result_fnd is is displaying the 'wrong' number? If so, can we see where $result_fnd is set? Link to comment https://forums.phpfreaks.com/topic/56334-need-help-with-stupid-thing/#findComment-278299 Share on other sites More sharing options...
HAVOCWIZARD Posted June 20, 2007 Author Share Posted June 20, 2007 no the result_fnd finds perfectly the correct results, the problem is that i need to display the result ontop of my page, there where is say found, because the minute it found something i start posting, the found and the counter for the result, how can i reset my counter on top of my page,,,where the found results are ? everything works perfect, just need to put my result counter on top of my results, this code is in the beggining of the page, before i start searching, and when i find something it posts the "results found" and then my results, but the counter doesnt update because its already posted.how can i post my counter again on top of my page ? or can i put my whole display of the "found results" at the bottom of my page and just say, if the counter is > 0 then post results found, but i need it ontop of my page, Link to comment https://forums.phpfreaks.com/topic/56334-need-help-with-stupid-thing/#findComment-278313 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.