Re: [PHP] What's wrong with this code?

2010-06-05 Thread David Mehler
Hello everyone, Much thanks. Sometimes when you stare at code for so long it blurs together, that's how it is with me at least. That was my problem, case sensitive variable. Thanks a lot. Dave. On 6/5/10, Mari Masuda wrote: > Could it be that you are not using the same variable name? In the if

Re: [PHP] What's wrong with this code?

2010-06-05 Thread Mari Masuda
Could it be that you are not using the same variable name? In the if statement you are using $row['EndDate'] and when attempting to print you are using $row['enddate']. I think you need to be consistent about which capitalization you use (and make sure it matches what is in the db). >>> if (!

Re: [PHP] What's wrong with this code?

2010-06-05 Thread Karl DeSaulniers
So your code looks like this? while($row = mysql_fetch_array($result3)) { echo ""; echo "" . $row['name'] . ""; echo "" . $row['type'] . ""; echo "" . $row['startdate'] . ""; if (!empty($row['EndDate'])) { //This should probably be $row ['enddate'] echo "" . $row['enddate'] . ""; } echo "" .

Re: [PHP] What's wrong with this code?

2010-06-05 Thread David Mehler
Hi, Thanks. I took out the entire else section including the exit call, it now all processes, however $row['enddate'] is not displayed on the two records where it is set. Thanks. Dave. On 6/5/10, Karl DeSaulniers wrote: > Could the exit() be terminating it? Do you need this exit() as the > else

Re: [PHP] What's wrong with this code?

2010-06-05 Thread Karl DeSaulniers
Could the exit() be terminating it? Do you need this exit() as the else for that if statement? Try deleting just the else {}. JAT Karl Sent from losPhone On Jun 5, 2010, at 6:54 PM, David Mehler wrote: Hello, I've got a while loop outputting values from a database. Briefly it looks like t

Re: [PHP] unlink()?

2010-06-05 Thread Ashley Sheridan
On Sat, 2010-06-05 at 18:55 -0400, tedd wrote: > Hi gang: > > Never-mind. > > I didn't change the parent directory permissions to unlink the file -- duh! > > Cheers, > > tedd > > --- I asked: > > Hi gang: > > I use unlink() to delete files on my server by using the statement: > > unlink($f

[PHP] What's wrong with this code?

2010-06-05 Thread David Mehler
Hello, I've got a while loop outputting values from a database. Briefly it looks like this: while($row = mysql_fetch_array($result3)) { echo ""; echo "" . $row['name'] . ""; echo "" . $row['type'] . ""; echo "" . $row['startdate'] . ""; if (!empty($row['EndDate'])) { echo "" . $row['enddate'

[PHP] unlink()?

2010-06-05 Thread tedd
Hi gang: Never-mind. I didn't change the parent directory permissions to unlink the file -- duh! Cheers, tedd --- I asked: Hi gang: I use unlink() to delete files on my server by using the statement: unlink($filename); where $filename is the physical path to the file plus file name, such

Re: [PHP] unlink()?

2010-06-05 Thread Richard Quadling
On 5 June 2010 23:45, tedd wrote: > Hi gang: > > I use unlink() to delete files on my server by using the statement: > > unlink($filename); > > where $filename is the physical path to the file plus file name, such as: > > $filename = '/var/www/vhosts/domain.com/httpdocs/a-dir/a-text.txt'; > > Now,

[PHP] unlink()?

2010-06-05 Thread tedd
Hi gang: I use unlink() to delete files on my server by using the statement: unlink($filename); where $filename is the physical path to the file plus file name, such as: $filename = '/var/www/vhosts/domain.com/httpdocs/a-dir/a-text.txt'; Now, I can read, write, and even create the file -- so

Re: [PHP] CakePHP, alternatives?

2010-06-05 Thread Larry Garfield
One other thing I will add: Don't just learn PHP. Learn Javascript as well. Don't treat it as PHP without dollar signs, but learn Javascript as Javascript, and PHP as PHP. Then after you've gotten some time with those, take some time to learn, or at least learn about even if you never work w

php-general@lists.php.net

2010-06-05 Thread Ashley Sheridan
On Sat, 2010-06-05 at 12:46 -0400, Brandon Rampersad wrote: > Those are POST parameters and not GET. > > On Fri, Jun 4, 2010 at 10:55 AM, Paul M Foster wrote: > > > On Fri, Jun 04, 2010 at 06:54:34AM -0700, Michael Calkins wrote: > > > > > > > > I would google this but I have no idea what this m

php-general@lists.php.net

2010-06-05 Thread Brandon Rampersad
Those are POST parameters and not GET. On Fri, Jun 4, 2010 at 10:55 AM, Paul M Foster wrote: > On Fri, Jun 04, 2010 at 06:54:34AM -0700, Michael Calkins wrote: > > > > > I would google this but I have no idea what this method is or how it > works. > > app.php?ph=cus&id=4 > > Can some tell me what