Re: concatenating

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

 



Hello Chris,

      

CS> Is it possible to concatenate a string and an element from a
CS> mysql_fetch_assoc array? I haven't had much luck searching google.

CS> Such as concatenating "results" with ' . $posts_row['store_tptest'] .
CS> ' so that if there are no elements returned nothing will be displayed?

if (!empty($posts_row['store_tptest'])) $str="results ".$posts_rows['store_tptest'];
-- 
With best regards from Ukraine,
Andre
Skype: Francophile
My blog: http://oire.org/menelion (mostly in Russian)
Twitter: http://twitter.com/m_elensule
Facebook: http://facebook.com/menelion


-- 
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