oblivious to the obvious
| From: | Arthur Pelkey | Date: | Fri, 23 Apr 2004 19:58:30 +0000 |
| Subject: | oblivious to the obvious | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-184463@lists.php.net to get a copy of this message | ||
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 my be awry.
$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_t1<br>";
break;
}
mysql_free_result($result);
(line 21)}
-Art