Solved

Use the mssql_fetch_assoc array values again

Posted on 2010-11-08
3
480 Views
Last Modified: 2012-05-10
Hello Experts,

To populate the values from the mssql_fetch_assoc array i use something like:
do{
}while($row_ParamJS = mssql_fetch_assoc($ParamJS));

If i do the do..while again to the same record collection ($ParamJS), doesn't populate the records again.. i need to goto the top of array to start over, but i don't know how to do it..

Help plz :)
0
Comment
Question by:justaphase
  • 2
3 Comments
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 34084331
This is your friend:
http://us3.php.net/manual/en/function.mssql-data-seek.php

Best regards, ~Ray
0
 
LVL 1

Author Closing Comment

by:justaphase
ID: 34086917
How didn't i see that...
I thought it was only to inform the position, not to change it...

Thank you very much!
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 34087612
Thanks for the points.  This question occurs about once a quarter - usually from a Dreamweaver developer in the MySQL Zone!  Cheers, ~Ray
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question