Re: [PHP] row pointer

2002-06-15 Thread Analysis & Solutions
Zac: > foreach($kywrd as $val) { > $fndWrds .= "wrd = '$val' OR "; > } FYI, a simpler way to do that... $fndWrds = "wrd IN ('" . implode("','", $kywrd) . "')"; That aside, w/o completely analyzing your entire set of code, it sounds like John is on the right track with putting a unique index

Re: [PHP] row pointer

2002-06-14 Thread 1LT John W. Holmes
To: <[EMAIL PROTECTED]>; "Analysis & Solutions" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, June 14, 2002 5:54 PM Subject: Re: [PHP] row pointer > John, Dan & All, > > Thanks for your response, perhaps if I tell you more of the story then it

Re: [PHP] row pointer

2002-06-14 Thread Zac Hillier
] row pointer > Keep track of it yourself as you loop through the data. Maybe if you > explained what you need "overall" then we could suggest a method... > > ---John Holmes... > > > -Original Message- > > From: Zac Hillier [mailto:[EMAIL PROTECTED]]

RE: [PHP] row pointer

2002-06-14 Thread John Holmes
; To: [EMAIL PROTECTED] > Subject: [PHP] row pointer > > Hi > > I'm looking for a php function that will return the position of the > pointer > in a mysql recordset. > > I found mysql_data_seek, but this appears to only move the pointer, I need > to get the equivale

Re: [PHP] row pointer

2002-06-14 Thread Analysis & Solutions
Hey Zac: On Fri, Jun 14, 2002 at 08:59:02AM +0100, Zac Hillier wrote: > > I'm looking for a php function that will return the position of the pointer > in a mysql recordset. I don't think there is one. You could use a counter variable as you're looping through each row to keep track of where

[PHP] row pointer

2002-06-14 Thread Zac Hillier
Hi I'm looking for a php function that will return the position of the pointer in a mysql recordset. I found mysql_data_seek, but this appears to only move the pointer, I need to get the equivalent row number for the pointer position before moving it, then return to the same position. Can anyon