php-general Digest 5 Jun 2010 22:39:55 -0000 Issue 6783

2010-06-05 Thread php-general-digest-help
php-general Digest 5 Jun 2010 22:39:55 - Issue 6783 Topics (messages 305843 through 305846): Re: CakePHP, alternatives? 305843 by: Shreyas 305846 by: Larry Garfield Re: What is app.php?ph=cusid=4? 305844 by: Brandon Rampersad 305845 by: Ashley Sheridan

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

Re: [PHP] unlink()?

2010-06-05 Thread Richard Quadling
On 5 June 2010 23:45, tedd t...@sperling.com 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';

[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

[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 tr; echo td . $row['name'] . /td; echo td . $row['type'] . /td; echo td . $row['startdate'] . /td; if (!empty($row['EndDate'])) { echo td .

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($filename);

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 dave.meh...@gmail.com wrote: Hello, I've got a while loop outputting values from a database.

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 k...@designdrumm.com wrote: Could the exit() be terminating it? Do you need this

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 tr; echo td . $row['name'] . /td; echo td . $row['type'] . /td; echo td . $row['startdate'] . /td; if (!empty($row['EndDate'])) { //This should probably be $row ['enddate'] echo td . $row['enddate'] . /td; } echo

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 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 mari.mas...@stanford.edu wrote: Could it be that you are not using the same