Re: [PHP] functions and global variables

2010-07-19 Thread Simcha Younger
On Mon, 19 Jul 2010 13:37:12 +0530 Shreyas Agasthya wrote: > My two cents on this one. > > Modify the $name within the function and print it. > > Modify the$name outside the function (means the non-global-declared $name) > and print it. You will know the difference. > > --Shreyas > > On M

Re: [PHP] functions and global variables

2010-07-19 Thread Shreyas Agasthya
My two cents on this one. Modify the $name within the function and print it. Modify the$name outside the function (means the non-global-declared $name) and print it. You will know the difference. --Shreyas On Mon, Jul 19, 2010 at 7:41 AM, Paul M Foster wrote: > On Sun, Jul 18, 2010 at 06:37:30

Re: [PHP] functions and global variables

2010-07-18 Thread Paul M Foster
On Sun, Jul 18, 2010 at 06:37:30PM -0400, David Mehler wrote: > Hello, > I've got a file with a variable declared in it. For purposes of this post: > > $name = $_POST['name']; > > Now a little later in the same file I have a custom function call that > outputs some information. In that informati

[PHP] functions and global variables

2010-07-18 Thread David Mehler
Hello, I've got a file with a variable declared in it. For purposes of this post: $name = $_POST['name']; Now a little later in the same file I have a custom function call that outputs some information. In that information is an echo statement outputting $name: echo $name; I'm wondering do I ha

RE: [PHP] functions and session variables

2004-02-18 Thread Vail, Warren
ssage- From: craig [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 3:08 PM To: Php Subject: [PHP] functions and session variables Hi, I just want to verify something that seems counterintuitive to me. Do you have to pass session variables to functions? It would seem to me that

[PHP] functions and session variables

2004-02-18 Thread craig
Hi, I just want to verify something that seems counterintuitive to me. Do you have to pass session variables to functions? It would seem to me that they should be available anywhere. I took a cursory look through the manual, but didn't see anything relevant. Thanks, Craig -- PHP General Mailing

[PHP] functions and

2003-03-03 Thread Martin Johansson
Hi I want to call a function logout() inside an statement: \">logout but this doesnt work.. how shall I do it /M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Functions and arguments

2003-01-29 Thread Blaine von Roeder
> > What happens when you run this? I made some tweaks to the way I was running sessions, and now it works. I'm still getting an error unfortunately, but it's less conspicuous and spammy this time: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/vir

Re: [PHP] Functions and arguments

2003-01-29 Thread Matt
- Original Message - From: "R0x0r Mc0wnage" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 29, 2003 8:49 PM Subject: Re: [PHP] Functions and arguments > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result >

Re: [PHP] Functions and arguments

2003-01-29 Thread R0x0r Mc0wnage
> What happens when you run this? Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site125/fst/var/www/html/atracker/assignments/index.php on line 15 ID Number Name Created by Created on Due on Class Warning: mysql_fetch_array(): suppli

Re: [PHP] Functions and arguments

2003-01-28 Thread Jason Wong
On Wednesday 29 January 2003 13:31, Blaine von Roeder wrote: > I'm working on the part of the site to parse your session for student id, > check the students table for your class listing(named period1, period2, > period3, etc), and then check the classes table based on the id numbers in > your stu

[PHP] Functions and arguments

2003-01-28 Thread Blaine von Roeder
Greetings, I'm working on a system to track homework and assignments for teachers/students. I'm in high school, and I decided I was sick of writing down the homework for the day, so I'm building a site that will allow teachers to post assignments/homework for each of their classes. Students can the

[PHP] functions and scoping

2002-05-22 Thread David Huyck
I am trying to define a function that is *like* the standard PHP "include()" function but is slightly different, but I am running into trouble with varible scoping. The idea is this: I want to mimic "include()" in a way such that when I include a file, it can then include files relative to itsel

[PHP] functions and quotes

2001-08-22 Thread Kurth Bemis
i'm working on a site that is going to require some fancy image switching based on URL called...thats part isn't a problem...the problem comes in the way that i'm passing the HTML from the function. My main concern here is speed with the second being workload on the server. right now the funct