Solved

Use the mssql_fetch_assoc array values again

Posted on 2010-11-08
3
476 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 109

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 109

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

821 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