RE: [PHP-DB] mysql_affected_rows
| From: | Rick Emery | Date: | Thu, 27 Sep 2001 16:18:04 +0000 |
| Subject: | RE: [PHP-DB] mysql_affected_rows | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-12796@lists.php.net to get a copy of this message | ||
sorry...i got confused with SELECT statement results...my error. I just
looked at PHP manual again.
-----Original Message-----
From: Russ Michell [mailto:r.j.michell@apu.ac.uk]
Sent: Thursday, September 27, 2001 11:13 AM
To: Rick Emery
Cc: php-db@lists.php.net
Subject: Re: RE: [PHP-DB] mysql_affected_rows
> yes, it's the same resource
Rick: php.net states:
[Editor's Note: Review the above documentation carefully!
mysql_affected_rows() works with connection handles
returned by mysql_connect() or mysql_pconnect(), not with result handles
returned by mysql_query()
or mysql_db_query() ]
So if this is the case, it can't be a result returned from my result:
mysql_query(), as I think you
were saying. Apolgies if this is not the case.
Cheers.
Russ
--zak@php.net]
On Thu, 27 Sep 2001 11:01:52 -0500 Rick Emery <remery@excel.com> wrote:
> yes, it's the same resource
>
> -----Original Message-----
> From: Russ Michell [mailto:r.j.michell@apu.ac.uk]
> Sent: Thursday, September 27, 2001 10:57 AM
> To: php-db@lists.php.net
> Subject: [PHP-DB] mysql_affected_rows
>
>
> Hey guys:
>
> I'm wanting to check that the same inserts/deletes/updates are not being
> made. As one would use
> mysql_num_rows for a select statement, one uses mysql_affected_rows for
all
> other statements.
>
> However what is a 'link_identifier'?? as in:
> int mysql_affected_rows ([resource link_identifier])
>
> What do I need to put between the brackets of the function where I would
> simply place my result in
> mysql_num_rows()??
>
> Cheers.
> Russ
>
>
> #-------------------------------------------------------#
>
> "Believe nothing - consider everything"
>
> Russ Michell
> Anglia Polytechnic University Webteam
> Room 1C 'The Eastings' East Road, Cambridge
>
> e: r.j.michell@apu.ac.uk
> w: www.apu.ac.uk/webteam
>
> www.theruss.com
>
> #-------------------------------------------------------#
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
#-------------------------------------------------------#
"Believe nothing - consider everything"
Russ Michell
Anglia Polytechnic University Webteam
Room 1C 'The Eastings' East Road, Cambridge
e: r.j.michell@apu.ac.uk
w: www.apu.ac.uk/webteam
www.theruss.com
#-------------------------------------------------------#