[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Proper syntax for strings in PHP
- Subject: [ale] Proper syntax for strings in PHP
- From: Gary at edisoninfo.com (Gary S. Mackay)
- Date: Sat, 29 Jul 2000 11:47:24 -0400
Here's a real easy one for you.
With apache/php4/mysql, how do I tack two strings, or mainly, a string and a
function together? What I'm trying to do is this:
echo "<td><b>" + mysql_field_name($result,$i) + "</b></td>";
^ ^
|- Wrong! what do I put here -|
I realize I could stuff the function result to a variable then use that in the
echo line, but just wondered how to it all on one line.
- Gary
--
Edison Information Technologies
P.O. Box 554
Milan, OH 44846-0554
419.499.7040
www.EdisonInfo.com
Gary at EdisonInfo.com
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.