Re: functions?

From: Date: Fri, 06 Jul 1979 15:56:35 +0000
Subject: Re: functions?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56517@lists.php.net to get a copy of this message
on 7/6/01 11:36 AM, rick at rolson@otn.net wrote: > while ($row = mysql_fetch_row ($result)) { > $map_list .= "<a > href='viewonly.php3?mapid=$row[1]'>$row[0]</a><br>"; } > } > return $map_list; Thanks Rick! This worked great. I guess I'm right in assuming that all you can get back from a function is one big string return. I've tried passing varibles to function and gave up on it. global.inc <?php function takes_a_string ($string) { $temp = $string; return $string; } ?> mainfile.php3 <?php $var = "something."; echo takes_a_string ($var); ?>

« previous php.general (#56517) next »