For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > November 2004 > Updating count on record results









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Updating count on record results
Stuart Felenstein

2004-11-19, 3:56 pm

I am setting up a table to log a count on individual
records for every time they are returned in a results
return.

Just so to illustrate

Record1

First search brings up Record1 (counter is set too 1)
Second search brings up Record1 (counter is set too 2)
Third search brings up Record1 (counter is set too 3)
....etc.

So I have a vauge idea of the sql statement but where
to place is the question. My thoughts are that it
should be in the loop that generates the result rows
return. In other words -

Maybe here :
<?php echo $row_rsVJ['JobTitle']; ?></div></td>

Or maybe here ?:
<?php } while ($row_rsVJ = mysql_fetch_assoc($rsVJ));
?>

Hope what I'm asking is clear.

Thank you ,
Stuart
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com