Solved

Use the mssql_fetch_assoc array values again

Posted on 2010-11-08
3
481 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

726 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