Re: Getting totals

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

 



On 6/7/06, Rob W. <rob@xxxxxxxxxxxxxxx> wrote:
Sorry for the miss understanding, That's the way the viarable will look, i'm
putting it in as a viariable.

if (strstr($block,$address)) {
  $inc++;
}


Like I said before, strstr's argument list is haystack (what to
search in) first and then needle (what to search for). Therefore,
you need to have:

strstr($address, $block);

Rabin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux