[PHP] Help with Functions

2005-07-30 Thread Tom Chubb
I am trying to start using functions on some pages to layout a header row in a table. I have defined the function as below... ?php function (headerrow) { ? table width=750 border=0 cellpadding=0 cellspacing=0 bgcolor=#FF0066 tr td class=table_head?php echo $tablehead;

Re: [PHP] Help with Functions

2005-07-30 Thread sub
variables are passed between functions? It's all in the call and definition. Andrew Darrow Kronos1 Productions www.pudlz.com - Original Message - From: Tom Chubb [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Saturday, July 30, 2005 9:23 AM Subject: [PHP] Help with Functions I am

Re: [PHP] Help with Functions

2005-07-30 Thread Rory Browne
You're declaring your function wrong. You're doing: function (function_name) You should be doing function function_name($arg1, $arg2, $arg3) // with as many comma seperated arguments as you want. or if you donĀ“t want to pass any arguments function function_name() Try this out: function

Re: [PHP] Help with Functions

2005-07-30 Thread Tom Chubb
Thanks guys for all your help. I've managed to get it working. I tried calling the function from within the file and it turned out that somehow I had messed up my include statement. I understood about adding argument variables to the syntax, but I needed to add a text argument as I couldn't think

Re: [PHP] Help with functions()

2002-11-20 Thread Chris Hewitt
Beauford 2002 wrote: Hi, I have form that a user would input information and that info is sent to a function, but I need to be able to return a result of this function and is where I am having a problem. For example: testfunction($var1, $var2, $var3, $var4); //the form fills these values.

Re: [PHP] Help with functions()

2002-11-20 Thread Tracy Finifter Rotton
Try: $meat = testfunction ($var1, $var2, $var3, $var4); echo $meat; Or, alternatively, print (testfunction ($var1, $var2, $var3, $var4)); hope this helps. --t On 11/20/02 8:40 PM, Beauford 2002 [EMAIL PROTECTED] wrote: Hi, I have form that a user would input information and that info

Re: [PHP] Help with functions()

2002-11-20 Thread Jason Sheets
You don't need the () around print. print testfunction($var1, $var2, $var3, $var4); Jason On Wed, 2002-11-20 at 17:48, Tracy Finifter Rotton wrote: Try: $meat = testfunction ($var1, $var2, $var3, $var4); echo $meat; Or, alternatively, print (testfunction ($var1, $var2, $var3,

[PHP] Help with functions()

2002-11-19 Thread Beauford 2002
Hi, I have form that a user would input information and that info is sent to a function, but I need to be able to return a result of this function and is where I am having a problem. For example: testfunction($var1, $var2, $var3, $var4); //the form fills these values. echo $meat; function

Re: [PHP] Help with functions()

2002-11-19 Thread Leif K-Brooks
echo testfunction($var1, $var2, $var3, $var4); Or if you need to do something else with the value before echo()ing it: $meat = testfunction($var1, $var2, $var3, $var4); //Do something with $meat Beauford 2002 wrote: Hi, I have form that a user would input information and that info is sent to

[PHP] Help with functions.

2002-02-28 Thread Sean Kennedy
Hello, I need some help with functions Does anyone know of a good place to learn about functions? Will someone be willing to teach me what I need to know about functions in PHP? Thank you, -Sean Kennedy -http://wwwgdesignsvcncom -- PHP General Mailing List (http://wwwphpnet/) To

Re: [PHP] Help with functions.

2002-02-28 Thread Greg Donald
I need some help with functions. Does anyone know of a good place to learn about functions? Will someone be willing to teach me what I need to know about functions in PHP? Thank you, Here's a really simple example: ? // regular variable that exists outside any functions $global_var = 5; //

[PHP] Help!! IP functions!!!

2001-02-19 Thread Bruno Freire
Hi!! My name is Bruno, From Brazil!!! I need to know how can i discovery the ip address when somebody access my home page What function can I use Thanks!! Bruno.

Re: [PHP] Help!! IP functions!!!

2001-02-19 Thread Jason Cox
Use the variable $REMOTE_ADDR. It contains the request ip address. Jason - Original Message - From: "Bruno Freire" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 19, 2001 12:34 PM Subject: [PHP] Help!! IP functions!!! Hi!! My name is Bruno, From Braz

Re: [PHP] Help!! IP functions!!!

2001-02-19 Thread Martin A. Marques
Mensaje citado por: Bruno Freire [EMAIL PROTECTED]: Hi!! My name is Bruno, From Brazil!!! I need to know how can i discovery the ip address when somebody access my home page What function can I use Bruno, check the phpinfo() function, which will give you lots of information