on 7/6/01 11:36 AM, rick at [EMAIL PROTECTED] 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);







?>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to