Re: no temp var for mysql_fetch_array results

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff (and John) --

...and then jeffrey_n_Dyke@xxxxxxxxx said...
% 
...
%  >   $r = mysql_query($q,$dbro) ;
%  >   $row = mysql_fetch_array($r) ;
%  >   $i = $row[0] ;
...
% >this one row (not looping), could I just
% >
% >  $i = mysql_fetch_array($r)[0] ;
% 
% Hi David....

Hi!


%       How about:
%       $i = mysql_result(mysql_query($q,$dbro),0);

Oooh!  Cool!  Just right.


% HTH
% Jeff


Thanks & HAND

:-D
-- 
David T-G
davidtg@xxxxxxxxxxxxxxx
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp00101.pgp
Description: PGP signature


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux