Re: [PHP] oblivious to the obvious

2004-04-23 Thread Chris Shiflett
--- Arthur Pelkey <[EMAIL PROTECTED]> wrote: > I keep getting Warning: mysql_fetch_array(): supplied argument is not > a valid MySQL result resource in lines 17 and 21 [snip] > $result = mysql_query("...") If mysql_query() returns false (which you can test by checking the value of $result, for e

Re: [PHP] oblivious to the obvious

2004-04-23 Thread John Nichel
Arthur Pelkey wrote: I keep getting Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in lines 17 and 21, they are marked below. I am drawing a blank, starting to doze off also :S, thunderbird has crappy default composition widths(anyone know how to change it?)

Re: [PHP] oblivious to the obvious

2004-04-23 Thread Matt Matijevich
[snip] $sun_5a_n1 = "1"; $sun_5a_t1 = "2"; if($sun_5a_n1) { $result = mysql_query("UPDATE sunday SET a5_n_1='$sun_5a_n1',a5_t_1='$sun_5a_t1'") while($row = mysql_fetch_array($result)) { (line 17)echo "Sunday @ 5am slot modified to Name: $sun_5a_n1, Time: $sun_5a_t

[PHP] oblivious to the obvious

2004-04-23 Thread Arthur Pelkey
I keep getting Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in lines 17 and 21, they are marked below. I am drawing a blank, starting to doze off also :S, thunderbird has crappy default composition widths(anyone know how to change it?), so the formatting