Re: oblivious to the obvious
| From: | Matt Matijevich | Date: | Fri, 23 Apr 2004 20:02:31 +0000 |
| Subject: | Re: oblivious to the obvious | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-184464@lists.php.net to get a copy of this message | ||
[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_t1<br>";
break;
}
mysql_free_result($result);
(line 21)}
[/snip]
I dont think sql UPDATE will return a result resource, so you dont have
anything to fetch or free.