[thelist] mysql_affected_rows() question

Dunstan Orchard dunstan at 1976design.com
Wed Sep 25 12:16:01 CDT 2002


> > // delete keywords associated with that image
> > $sql2 = ("DELETE FROM imagekeyword WHERE (imageid = '$DelPic')");
> >
> > if (mysql_affected_rows(sql2))
> > 	{
> > 	print "good";
> > 	$del_imagekeyword_error = "0";
> > 	}
> >
> > I get told that 'mysql_affected_rows(sql2)'is not a valid
> > MySQL-Link resource.
>
> Did you use this:
> > if (mysql_affected_rows(sql2))
>
> or this?
> > if (mysql_affected_rows($sql2))


I've tried both, and neither one works - same error :o/


- dunstan (btw, I'm on digest, could you cc me please? thanks)

---------------------------
Dorset, England
http://www.1976design.com/
http://www.orchard.it/
http://www.maccaws.org/



More information about the thelist mailing list