Re: [PHP] New Problem with Arrays won't show the first record of a query.

2004-03-12 Thread Elliot J. Balanza
Thanks guys... it works dandy now. Vamp <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > On 12 Mar 2004 Elliot J. Balanza wrote: > > > . > > $row_prefs = mysql_fetch_assoc($prefs); > > . > > while ($row_prefs = mysql_fetch_assoc($prefs)) { > > . > > > and it works fi

Re: [PHP] New Problem with Arrays won't show the first record of a query.

2004-03-12 Thread trlists
On 12 Mar 2004 Elliot J. Balanza wrote: > . > $row_prefs = mysql_fetch_assoc($prefs); > . > while ($row_prefs = mysql_fetch_assoc($prefs)) { > . > and it works fine EXCEPT it wont show the first record of the query... any > ideas why? Yes ... see the two lines quoted above. Each tim

Re: [PHP] New Problem with Arrays won't show the first record of a query.

2004-03-12 Thread Rasmus Lerdorf
Because you do mysql_fetch_assoc() once before going into your while loop. Get rid of that first $row_prefs = mysql_fetch_assoc(...) line there and it will work. -Rasmus On Fri, 12 Mar 2004, Elliot J. Balanza wrote: > Ok thanks to Michael Nolan I was able to do what I needed. The final code i

Re: [PHP] New problem - HELP! [SOLVED]

2003-11-13 Thread David T-G
Jake -- ...and then Jake McHenry said... % % > -Original Message- % > From: Jake McHenry [mailto:[EMAIL PROTECTED] ... % > > -Original Message- % > > From: David T-G [mailto:[EMAIL PROTECTED] ... % > > ...and then Jake McHenry said... ... % > > % % > > % Basically, some lines hav

RE: [PHP] New problem - HELP!

2003-11-13 Thread Chris W. Parker
Jake McHenry on Thursday, November 13, 2003 3:12 PM said: > You asked is it empty or actually undefined...? I showed you the csv > file, and the output of print_r... You tell me.. I don't know.. Lol :\ What you can do is try different comparisons for the if stateme

RE: [PHP] New problem - HELP! [SOLVED]

2003-11-13 Thread Jake McHenry
> -Original Message- > From: Jake McHenry [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 13, 2003 6:12 PM > To: 'David T-G' > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] New problem - HELP! > > > > -Original Message- > > From

RE: [PHP] New problem - HELP!

2003-11-13 Thread Jake McHenry
> -Original Message- > From: David T-G [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 13, 2003 5:09 PM > To: PHP General list > Cc: Jake McHenry > Subject: Re: [PHP] New problem - HELP! > > > Jake -- > > ...and then Jake McHenry said... > %

Re: [PHP] New problem - HELP!

2003-11-13 Thread David T-G
Jake -- ...and then Jake McHenry said... % % I have a csv file I'm importing, very simple setup. I think I must be % going blind from sitting infront of this puter for so long :-( I % can't seem to see what I did wrong. Here's my stuff: % % Csv file: % % 01000170600010, % 27362538462735,15415

RE: [PHP] New problem - preg_match?

2002-09-19 Thread Ford, Mike [LSS]
> -Original Message- > From: Chad Winger [mailto:[EMAIL PROTECTED]] > Sent: 19 September 2002 06:25 > > Still using my text file example, which has lines such as: > > 0706010102|01.01.02|16:00|Serie C2|02|Forlì|Florentia Viola| > 0610010102|01.07.02|16:00|Serie C2|05|Florentia Viola|Gubb

Re: [PHP] New problem - preg_match?

2002-09-19 Thread Marek Kilimajer
if $datetest has a strict format, use $getdate[1]==$datetest, also put $datetest="$day.month.$year" out of the while loop, it doesn't need to be recreated over and over. Chad Winger wrote: >Yes, I'm STILL a newbie :) I've gotten pretty far in a few days thanks to >you all. I have a new questio

RE: [PHP] new problem

2001-07-25 Thread Jon Haworth
On which OS? For example, on a Linux box, I imagine you could do something like exec("mv old.directory.name new.directory.name"); Cheers Jon -Original Message- From: Eduardo Kokubo [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 15:07 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject

Re: [PHP] New problem with PHP "odbc_exec".

2001-04-18 Thread Scott Fletcher
The table in the SQL have primary key already and I get this error message. So, I'll try your recommendation to disable part of the PHP script and recompile. Sometime it is better to move on than to struggle over it because no one seem to have the answer to the problem. Thanks, Scott ""Andrew

RE: [PHP] New problem with PHP "odbc_exec".

2001-04-18 Thread Andrew Hill
Scott, This error indicates that there is no index/primary key on a table that the result set is coming from - and PHP has told the driver read the result set into a into a cursor (which requires a primary key). Adding a primary key to the table will fix this, or passing a different cursor type

Re: [PHP] New problem with PHP "odbc_exec".

2001-04-18 Thread Yasuo Ohgaki
[From BugDB] ID: 10375 Updated by: kalowsky Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Reproduceable crash PHP Version: 4.0.4pl1 Assigned To: Comments: fixed in cvs, will not be in 4.0.5, but later releases. Previous Comments: ---