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
$indx[$key] = mysql_insert_id(); } #-- check to see that each word has an index value if($indx[$key]) { #--create value list for update into lookup table $vlst .= "($compID," . $indx[$key] . "," . $scr[$key] . "), "; } else { echo 'no index set for keywo

RE: [PHP] row pointer

2002-06-14 Thread John Holmes
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]] > Sent: Friday, June 14, 2002 3:59 AM > To: [EMAIL PROTECTED] > S

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