FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


HomeWatched TopicsRegisterSearchDirectory
FAQMemberlistUsergroupsLog inStoresItemsBank
Google

Reply to topic Page 1 of 1
Reset($array);
Message  

Reply with quote
Post Reset($array); 
Code:
print_r($row);
    while($row=mysql_fetch_array($result)){
print_r($row);


My first print returns what I want, $row[0] but once it enters the while loop it jumps to $row[1] meaning it doesn't display row[0]. I've tried using prev() and reset() but neither work.

How can I stop it from skipping when it enters the loop?

Thanks,
S.

View user's profile Send private message

Reply with quote
Post  
reset is useless, because you are regenerating your array every time. You could regenerate your result:

$result = mysql_query($query);

then run your while loop.


_________________
www.eb-downloads.com
FREE E-BOOKS DOWNLOADS.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Reply with quote
Post  
I asked this question on a different forum awhile ago and I got, what I think, is my answer however I don't fully understand it and the guy has stopped replying and I need the answer ASAP.

The url is http://www.boards.ie/vbulletin...p=54231385

If linking to a different board is against thr rule feel free to remove the link and I'll add the neccessary info here its just theres alot and I thought seeing the whole conversation may help.

Thanks.

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  



Google

FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


Web Design by PlatinumShore.com & Web Hosting by TradeWebHosting.com