[ale] Proper syntax for strings in PHP

Mike Kachline kachline at brightstar.gt.ed.net
Sun Jul 30 01:21:38 EDT 2000


On Sat, 29 Jul 2000, Gary S. Mackay wrote:

> 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>";
<snip>
	
	Gary,

	Use "." instead. This exact same problem got me when the later
versions of PHP 3 came out. They changed string concats from "+" to ".".



					Cheers,
						- Mike
-- 
======================================
Michael Kachline 
mailto:kachline at brightstar.gt.ed.net
http://brightstar.gt.ed.net/kachline
======================================

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list