Re: [PHP] Little php code - error

2010-04-08 Thread Jim Lucas
Paul M Foster wrote: > On Thu, Apr 08, 2010 at 04:26:08PM +0100, Ashley Sheridan wrote: > >> On Thu, 2010-04-08 at 12:17 -0300, Juan wrote: >> >>> 2010/4/8 Richard Quadling : On 8 April 2010 15:21, Juan wrote: > Hi guys, > I'm having trouble with the following little php code [0]. Th

Re: [PHP] Little php code - error

2010-04-08 Thread Ashley Sheridan
On Thu, 2010-04-08 at 12:00 -0400, Paul M Foster wrote: > On Thu, Apr 08, 2010 at 04:26:08PM +0100, Ashley Sheridan wrote: > > > On Thu, 2010-04-08 at 12:17 -0300, Juan wrote: > > > > > 2010/4/8 Richard Quadling : > > > > On 8 April 2010 15:21, Juan wrote: > > > >> Hi guys, > > > >> I'm having

Re: [PHP] Little php code - error

2010-04-08 Thread Paul M Foster
On Thu, Apr 08, 2010 at 04:26:08PM +0100, Ashley Sheridan wrote: > On Thu, 2010-04-08 at 12:17 -0300, Juan wrote: > > > 2010/4/8 Richard Quadling : > > > On 8 April 2010 15:21, Juan wrote: > > >> Hi guys, > > >> I'm having trouble with the following little php code [0]. The output > > >> from th

Re: [PHP] Little php code - error

2010-04-08 Thread Ashley Sheridan
On Thu, 2010-04-08 at 12:17 -0300, Juan wrote: > 2010/4/8 Richard Quadling : > > On 8 April 2010 15:21, Juan wrote: > >> Hi guys, > >> I'm having trouble with the following little php code [0]. The output > >> from the server is : " > >> * Parse error: syntax error, unexpected '{' in file.php on

Re: [PHP] Little php code - error

2010-04-08 Thread Juan
2010/4/8 Richard Quadling : > On 8 April 2010 15:21, Juan wrote: >> Hi guys, >> I'm having trouble with the following little php code [0]. The output >> from the server is : " >> * Parse error: syntax error, unexpected '{' in file.php on line 27 * >> >> Let's assume that file.php is the file that

Re: [PHP] Little php code - error

2010-04-08 Thread Richard Quadling
On 8 April 2010 15:21, Juan wrote: > Hi guys, > I'm having trouble with the following little php code [0]. The output > from the server is : " > * Parse error: syntax error, unexpected '{' in file.php on line 27 * > > Let's assume that file.php is the file that is giving me some troubles. > > The

Re: [PHP] Little php code - error

2010-04-08 Thread Richard Quadling
On 8 April 2010 15:21, Juan wrote: > Hi guys, > I'm having trouble with the following little php code [0]. The output > from the server is : " > * Parse error: syntax error, unexpected '{' in file.php on line 27 * > > Let's assume that file.php is the file that is giving me some troubles. > > The

Re: [PHP] Little php code - error

2010-04-08 Thread Peter Lind
On 8 April 2010 16:30, David Otton wrote: > On 8 April 2010 15:21, Juan wrote: > >> The structure is pretty easy to understand, however I'm not able to >> solve this. Could you tell me why I'm not able to run this code. > > Your else has a condition on it > > } else (empty($b) and empty($c)) { >

Re: [PHP] Little php code - error

2010-04-08 Thread David Otton
On 8 April 2010 15:21, Juan wrote: > The structure is pretty easy to understand, however I'm not able to > solve this. Could you tell me why I'm not able to run this code. Your else has a condition on it } else (empty($b) and empty($c)) { Should be } else { BTW, the "and" is fine. -- PHP G

Re: [PHP] Little php code - error

2010-04-08 Thread Dan Joseph
On Thu, Apr 8, 2010 at 10:21 AM, Juan wrote: > Hi guys, > I'm having trouble with the following little php code [0]. The output > from the server is : " > * Parse error: syntax error, unexpected '{' in file.php on line 27 * > Sorry, I gave you bad information... Its the else line. else doesn't

Re: [PHP] Little php code - error

2010-04-08 Thread Dan Joseph
On Thu, Apr 8, 2010 at 10:21 AM, Juan wrote: > Hi guys, > I'm having trouble with the following little php code [0]. The output > from the server is : " > * Parse error: syntax error, unexpected '{' in file.php on line 27 * > > Let's assume that file.php is the file that is giving me some trouble

Re: [PHP] Little php code - error

2010-04-08 Thread Devendra Jadhav
Can you paste your code somewhere? On Thu, Apr 8, 2010 at 7:51 PM, Juan wrote: > Hi guys, > I'm having trouble with the following little php code [0]. The output > from the server is : " > * Parse error: syntax error, unexpected '{' in file.php on line 27 * > > Let's assume that file.php is the

[PHP] Little php code - error

2010-04-08 Thread Juan
Hi guys, I'm having trouble with the following little php code [0]. The output from the server is : " * Parse error: syntax error, unexpected '{' in file.php on line 27 * Let's assume that file.php is the file that is giving me some troubles. The structure is pretty easy to understand, however I'