Jump to content

need help with stupid thing


HAVOCWIZARD

Recommended Posts

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

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,

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.