Re: database (slightly ot)
| From: | David T-G | Date: | Thu, 08 May 2003 15:21:40 +0000 |
| Subject: | Re: database (slightly ot) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146856@lists.php.net to get a copy of this message | ||
Ryan --
..and then Ryan A said...
%
..
% address='$surl') and userid = $userid ") && $db->get_num_rows() > 0 )
..
% 2) A little confused here "&& $db->get_num_rows() > 0 )" how can you
assign
% a pointer like that?
That's not a pointer; that's a function ("method") that's part of a
class. You should have had something above like
$db = new (Thing) ;
and then get_num_rows is a function in the Thing class, so you're
checking to see if [presumably] the number of rows is > 0.
%
% Kindly reply,
% -Ryan
HTH & HAND & how's the logo business these days?
:-D
--
David T-G * There is too much animal courage in
(play) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!