Re: [PHP] Anyone else have trouble with Apple Mail threading this list?

2009-01-02 Thread phphelp -- kbk
On Dec 31, 2008, at 5:55 PM, Brian Dunning wrote: ... When I hit Reply or Reply All in Mail, it wants to reply directly to the poster, and only CC's the list... That is just the way the list works. (If you look at threads, you will see a fairly-constant stream of reminders to reply all to

[PHP] Anyone else have trouble with Apple Mail threading this list?

2008-12-31 Thread Brian Dunning
I use Apple Mail, and subscribe to many lists but PHP-General is the only one I have this problem with. People tell me that my replies are not properly threaded to the original post. When I hit Reply or Reply All in Mail, it wants to reply directly to the poster, and only CC's the list. So

Re: [PHP] Anyone else doing PHP on Symbian?

2008-02-06 Thread Peter Ford
Paul Scott wrote: On Tue, 2008-02-05 at 13:29 -0500, Daniel Brown wrote: Still debating what device I'll get next, but I want to use it as a mobile server myself. I had been working on a bound-for-trash PDA doing the same a while back, but with what we'll refer to as limited results. I

[PHP] Anyone else doing PHP on Symbian?

2008-02-05 Thread George Pitcher
Hi, I've recently installed PAMP (PHP, Apache, MySQL Python) on my Nokia N95. I can do my development in Dreamweaver and move across to the phone and it all works. I have some questions, but won't bother asking if there's no-one else here doing it. Cheers George, in a very wet Edinburgh --

Re: [PHP] Anyone else doing PHP on Symbian?

2008-02-05 Thread Paul Scott
On Tue, 2008-02-05 at 14:44 +, George Pitcher wrote: I've recently installed PAMP (PHP, Apache, MySQL Python) on my Nokia N95. I can do my development in Dreamweaver and move across to the phone and it all works. Sounds intruiging! Care to share some resources/links as to how to set

Re: [PHP] Anyone else doing PHP on Symbian?

2008-02-05 Thread Daniel Brown
On Feb 5, 2008 9:50 AM, Paul Scott [EMAIL PROTECTED] wrote: On Tue, 2008-02-05 at 14:44 +, George Pitcher wrote: I've recently installed PAMP (PHP, Apache, MySQL Python) on my Nokia N95. I can do my development in Dreamweaver and move across to the phone and it all works. Sounds

Re: [PHP] Anyone else doing PHP on Symbian?

2008-02-05 Thread Cameron Just
More info can be found here... When I get my Nokia N82 I am going to try it out. http://wiki.opensource.nokia.com/projects/PAMP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anyone else doing PHP on Symbian?

2008-02-05 Thread Paul Scott
On Tue, 2008-02-05 at 13:29 -0500, Daniel Brown wrote: Still debating what device I'll get next, but I want to use it as a mobile server myself. I had been working on a bound-for-trash PDA doing the same a while back, but with what we'll refer to as limited results. I think that the key

Re: [PHP] if(), else() problem!

2006-10-09 Thread Rahul S. Johari
Well actually, all 80 fields (not records) that I'm displaying out of the row (matched by phone number) have to be displayed on the page. Non-Editable. Just displayed for viewing. I am certainly using the query to search dbase and display the results. So technically nothing that I'm doing is

[PHP] if(), else() problem!

2006-10-06 Thread Rahul S. Johari
Ave, code: $db = dbase_open(osm.dbf, 0); if ($db) { $record_numbers = dbase_numrecords($db); for ($i = 1; $i = $record_numbers; $i++) { $row = dbase_get_record_with_names($db, $i); if ($row['PHONE'] == $thekey) { echo ³found²; } else { echo ³not found²; } }

Re: [PHP] if(), else() problem!

2006-10-06 Thread Jo�o C�ndido de Souza Neto
Usen this: echo ³not found²; break; Rahul S. Johari [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Ave, code: $db = dbase_open(osm.dbf, 0); if ($db) { $record_numbers = dbase_numrecords($db); for ($i = 1; $i = $record_numbers; $i++) { $row =

Re: [PHP] if(), else() problem!

2006-10-06 Thread Jochem Maas
Rahul S. Johari wrote: Ave, code: $db = dbase_open(osm.dbf, 0); if ($db) { $record_numbers = dbase_numrecords($db); for ($i = 1; $i = $record_numbers; $i++) { $row = dbase_get_record_with_names($db, $i); if ($row['PHONE'] == $thekey) { echo ³found²; }

Re: [PHP] if(), else() problem!

2006-10-06 Thread Rahul S. Johari
Just tried, isn't working! It's doing the same thing that exit; does. Both else { echo Not Found; break; } And else { echo Not Found; exit; } Do the exact same thing. It will print not found (because it checks the first row, and if the

Re: [PHP] if(), else() problem!

2006-10-06 Thread Rahul S. Johari
Works like a charm!! I was trying something out with having a variable go completely out of the functions loops and print the not found message, but I wasn't hitting it. You did! // ^^^--- now tested ;) On 10/6/06 1:52 PM, Jochem Maas [EMAIL PROTECTED] wrote: $msg = 'cannot open database!';

Re: [PHP] if(), else() problem!

2006-10-06 Thread Børge Holen
Why not check if $thekey is in the $db, then else echo not found? seems all to much to do so little. On Friday 06 October 2006 18:35, Rahul S. Johari wrote: Ave, code: $db = dbase_open(osm.dbf, 0); if ($db) { $record_numbers = dbase_numrecords($db); for ($i = 1; $i = $record_numbers;

Re: [PHP] if(), else() problem!

2006-10-06 Thread Rahul S. Johari
Well, the actual script doesn't just print found number if the number exists... It displays all the data from the database of that record, also gives an interactive form to update the data and more. On 10/6/06 3:25 PM, Børge Holen [EMAIL PROTECTED] wrote: Why not check if $thekey is in the

Re: [PHP] if(), else() problem!

2006-10-06 Thread Børge Holen
On Friday 06 October 2006 21:45, Rahul S. Johari wrote: Well, the actual script doesn't just print found number if the number exists... It displays all the data from the database of that record, also gives an interactive form to update the data and more. Yes, and my point is still valid. need

Re: [PHP] if(), else() problem!

2006-10-06 Thread Rahul S. Johari
I'm not sure if I understand your point then! I have about 80 fields in that database that are fetched and displayed on the page using this code. If there's a simpler way to do this, and have it work the if() else() error as well, I would love to know about it... On 10/6/06 3:47 PM, Børge Holen

Re: [PHP] if(), else() problem!

2006-10-06 Thread Richard Lynch
On Fri, October 6, 2006 11:35 am, Rahul S. Johari wrote: $db = dbase_open(osm.dbf, 0); if ($db) { $record_numbers = dbase_numrecords($db); $found = false; for ($i = 1; $i = $record_numbers; $i++) { $row = dbase_get_record_with_names($db, $i); if ($row['PHONE'] == $thekey) {

Re: [PHP] if(), else() problem!

2006-10-06 Thread Richard Lynch
On Fri, October 6, 2006 2:45 pm, Rahul S. Johari wrote: Well, the actual script doesn't just print found number if the number exists... It displays all the data from the database of that record, also gives an interactive form to update the data and more. None of which is a Good Reason to

Re: [PHP] if(), else() problem!

2006-10-06 Thread Richard Lynch
On Fri, October 6, 2006 2:59 pm, Rahul S. Johari wrote: I'm not sure if I understand your point then! I have about 80 fields in that database that are fetched and displayed on the page using this code. If there's a simpler way to do this, and have it work the if() else() error as well, I

Re: [PHP] if(), else() problem!

2006-10-06 Thread Børge Holen
On Friday 06 October 2006 21:59, Rahul S. Johari wrote: I'm not sure if I understand your point then! I have about 80 fields in that database that are fetched and displayed on the page using this code. If there's a simpler way to do this, and have it work the if() else() error as well, I would

[PHP] php: else if problem

2005-03-22 Thread Leonidas Savvides
to: 'php-general@lists.php.net' from: Leonidas Savvides Please see my problem below in PHP code : _ ?php echo $month, $day, $year, $month2, $day2, $year2;// these are ok-normal values from web form if ( ! @checkdate($month,$day,$year) ) { echo this operate

Re: [PHP] php: else if problem

2005-03-22 Thread Franklin van de Meent
In PHP you should write it as } elseif {, so there's no space between else and if. Read http://php.net/elseif for more details On Tue, 22 Mar 2005 22:48:00 +0200, Leonidas Savvides [EMAIL PROTECTED] wrote: to: 'php-general@lists.php.net' from: Leonidas Savvides Please see my problem

Re: [PHP] php: else if problem

2005-03-22 Thread M. Sokolewicz
read the manual, you can use both (else if and elseif). The script does exactly what you tell it to. The flaw(s) is(/are) in your logic. Second of all, might I please advise you to have a good look at your code, and at least *try* to clean it up a bit? I'm sure you didn't mean it like this, but

Re: [PHP] php: else if problem

2005-03-22 Thread Richard Lynch
On Tue, March 22, 2005 1:47 pm, M. Sokolewicz said: read the manual, you can use both (else if and elseif). The script does exactly what you tell it to. The flaw(s) is(/are) in your logic. else if and elseif are not exactly the same, as the manual indicates (and glosses over a bit). The will

[PHP] What else can cause unexpected T_SL error other than heredoc?

2004-11-25 Thread D. D. Brierton
We've been getting the following error: [error] PHP Parse error: parse error, unexpected T_SL in /foo/bar.php on line 136 (where foo and bar obviously are stand-ins for real values). The weird thing is that the file generating the error, bar.php, DOESN'T contain any heredoc quotations. bar.php

Re: [PHP] What else can cause unexpected T_SL error other than heredoc?

2004-11-25 Thread Greg Donald
On Thu, 25 Nov 2004 12:17:01 +, D. D. Brierton [EMAIL PROTECTED] wrote: We've been getting the following error: [error] PHP Parse error: parse error, unexpected T_SL in /foo/bar.php on line 136 Can you post some of this code? Are all your heredoc instances completely left justified?

Re: [PHP] What else can cause unexpected T_SL error other than heredoc?

2004-11-25 Thread D. D. Brierton
On Thu, 25 Nov 2004 06:26:22 -0600, Greg Donald wrote: On Thu, 25 Nov 2004 12:17:01 +, D. D. Brierton [EMAIL PROTECTED] wrote: We've been getting the following error: [error] PHP Parse error: parse error, unexpected T_SL in /foo/bar.php on line 136 Can you post some of this code?

[PHP] If Else Syntax Incorrect (I Think)

2004-08-13 Thread Harlequin
Can someone help with this please...? if( strlen( $UserID ) != 0 strlen( $UserPassword ) != 0 strlen( $SecretPassword ) != 0 strlen( $UserMail ) != 0 ) { Do something } elseif ( strlen( $UserID ) == 0 or strlen( $UserPassword ) == 0 or strlen( $SecretPassword ) == 0 or strlen( $UserMail ) == 0

Re: [PHP] If Else Syntax Incorrect (I Think)

2004-08-13 Thread Jason Wong
On Friday 13 August 2004 19:33, Harlequin wrote: Can someone help with this please...? if( strlen( $UserID ) != 0 strlen( $UserPassword ) != 0 strlen( $SecretPassword ) != 0 strlen( $UserMail ) != 0 ) { Do something } elseif ( strlen( $UserID ) == 0 or strlen( $UserPassword ) == 0

RE: [PHP] If Else Syntax Incorrect (I Think)

2004-08-13 Thread Jay Blanchard
[snip] Can someone help with this please...? if( strlen( $UserID ) != 0 strlen( $UserPassword ) != 0 strlen( $SecretPassword ) != 0 strlen( $UserMail ) != 0 ) { Do something } elseif ( strlen( $UserID ) == 0 or strlen( $UserPassword ) == 0 or strlen( $SecretPassword ) == 0 or strlen( $UserMail

RE: [PHP] If Else Syntax Incorrect (I Think)

2004-08-13 Thread Ford, Mike [LSS]
On 13 August 2004 12:52, Jay Blanchard wrote: if( strlen( $UserID ) != 0 strlen( $UserPassword ) != 0 strlen( $SecretPassword ) != 0 strlen( $UserMail ) != 0 ) { Do something } elseif ( strlen( $UserID ) == 0 strlen( $UserPassword ) == 0 strlen( $SecretPassword ) == 0 strlen(

[PHP] if..else condition for checkbox

2003-10-01 Thread irinchiang
Hi all, May I just ask how do I do a if..elseif..else condition to check if a checkbox have been checked. For some reference, I have attached my HTML code and PHP code below: HTML: html head titlePayment Mode/title style type=text/css @import url(receipt.css); /style /head

[PHP] if else while statement speed

2003-09-03 Thread Dan Anderson
I have a function where I have: ?php while (something()) { if ($option1) { do_1(); } elseif ($option2) { do_2(); } // ... continue for 10 or more options... } ? would it be quicker to do the above code or: if ($option1) { while(something()) { do_1(); } } elseif ($option2) {

RE: [PHP] if else while statement speed

2003-09-03 Thread Jay Blanchard
[snip] ?php if ($option1) { while(something()) { do_1(); } } elseif ($option2) { while (something()) { do_2(); } } // ... continue for 10 or more options... [/snip] Theoretically the second one is faster because it only executes the while loop when the condition is met. The first one

Re: [PHP] if else while statement speed

2003-09-03 Thread Chris Sherwood
; }// end of } if ($option1) { do_1(); } elseif ($option2) { do_2(); } // ... continue for 10 or more options... } ? - Original Message - From: Dan Anderson [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 10:25 AM Subject: [PHP] if else while

[PHP] Re: Else If/Elseif

2003-06-30 Thread Tularis
Stevie Peele wrote: What is the difference between else if and elseif? Thanks _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail else if shouldn't be used, use elseif, and the

Re: [PHP] Re: Else If/Elseif

2003-06-30 Thread Reuben D. Budiardja
On Monday 30 June 2003 09:41 am, Tularis wrote: Stevie Peele wrote: What is the difference between else if and elseif? Thanks _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE*

[PHP] if else if statement failed...

2003-06-26 Thread Scott Fletcher
Hi! Noticed something interesting. I was helping to debug someone's programming problem and found that if there is to many 'else if' in the if and else statement then it doesn't work. Have anyone encoutered this problem and know of a workaround to it? Thanks, Scott -- PHP General

RE: [PHP] if else if statement failed...

2003-06-26 Thread Dan Joseph
Hi, Noticed something interesting. I was helping to debug someone's programming problem and found that if there is to many 'else if' in the if and else statement then it doesn't work. Have anyone encoutered this problem and know of a workaround to it? That sounds kinda bizzare,

RE: [PHP] if else if statement failed...

2003-06-26 Thread Jay Blanchard
[snip] Noticed something interesting. I was helping to debug someone's programming problem and found that if there is to many 'else if' in the if and else statement then it doesn't work. Have anyone encoutered this problem and know of a workaround to it? [/snip] I'd have to see the code Jay

Re: [PHP] if else if statement failed...

2003-06-26 Thread Scott Fletcher
I am seeing the problem now. It seem that it had to do with the 'OR' statement inside the elseif statement... I'm going to try a workaround to it... As for you mentioning about the code... It's too bad this message window doesn't properly display the tabs --clip-- if ($firstname == \\)

Re: [PHP] if else if statement failed...

2003-06-26 Thread Scott Fletcher
Just found the problem, the if, else-if, else statement work okay when it is too many. The reason it doesn't work is because there's a loophole in the script due to someone's flaw logic or haven't thought about it when brainstorming... Thanks, Scott Scott Fletcher [EMAIL PROTECTED] wrote in

Re: [PHP] if else if statement failed...

2003-06-26 Thread Ernest E Vogelsinger
At 22:09 26.06.2003, Scott Fletcher said: [snip] I am seeing the problem now. It seem that it had to do with the 'OR' statement inside the elseif statement... I'm going to try a workaround to it... As for you mentioning about the code... It's too bad

[PHP] If else.. display no picture..

2003-04-05 Thread fkeessen
Hi, I'm trying to do the following.. When $stadpict is filled in it must display the picture (only the path to the picture is stored in Mysql). But when the string ($stadpict) is empty then it must not display the picture (and also not display a box with a red cross in it (can't display

RE: [PHP] If else.. display no picture..

2003-04-05 Thread John W. Holmes
I'm trying to do the following.. When $stadpict is filled in it must display the picture (only the path to the picture is stored in Mysql). But when the string ($stadpict) is empty then it must not display the picture (and also not display a box with a red cross in it (can't display picture!

Re: [PHP] If else.. display no picture..

2003-04-05 Thread Rasmus Lerdorf
I would help if you told us which line the error was on On Sat, 5 Apr 2003 [EMAIL PROTECTED] wrote: Hi, I'm trying to do the following.. When $stadpict is filled in it must display the picture (only the path to the picture is stored in Mysql). But when the string ($stadpict) is empty then

[PHP] If... Else.. I'm not getting it!

2003-01-25 Thread Frank Keessen
Hi all, Please can you help me with the following: If got a little sample code: This one is working (!): ?php $vname=$_POST['vname']; echo hello $vname; ? form action=? echo ($_SERVER['PHP_SELF']); ? method=post table trtdInput yourname/tdtdinput type=text name=vname/td/tr trtd colspan=2input

Re: [PHP] If... Else.. I'm not getting it!

2003-01-25 Thread Jason Wong
On Saturday 25 January 2003 18:27, Frank Keessen wrote: But when i'm using IF Else.. Nothing is happening. I'm only seeing the form but when i submit that form: The $vname doen't display.. Here is the code that doesn't work: ?php $vname=$_POST['vname']; if($submit) { Try some basic

Re: [PHP] If... Else.. I'm not getting it!

2003-01-25 Thread Frank Keessen
, January 25, 2003 11:36 AM Subject: Re: [PHP] If... Else.. I'm not getting it! On Saturday 25 January 2003 18:27, Frank Keessen wrote: But when i'm using IF Else.. Nothing is happening. I'm only seeing the form but when i submit that form: The $vname doen't display.. Here is the code

Re: [PHP] If... Else.. I'm not getting it!

2003-01-25 Thread Johannes Schlueter
Hi, On Saturday 25 January 2003 12:18, Frank Keessen wrote: The register_globals = Off. Dit the basic echo ($submit) but it displays nothing.. Any thoughts somebody?? Switch on register_globals or (better!) use $_GET['submit'], $_POST['submit'] or $_REQUEST['submit']. Thanks for helping

Re: [PHP] If... Else.. I'm not getting it!

2003-01-25 Thread Frank Keessen
: Johannes Schlueter [EMAIL PROTECTED] To: Frank Keessen [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, January 25, 2003 12:25 PM Subject: Re: [PHP] If... Else.. I'm not getting it! Hi, On Saturday 25 January 2003 12:18, Frank Keessen wrote: The register_globals = Off. Dit the basic echo

RE: [PHP] If... Else.. I'm not getting it!

2003-01-25 Thread Rich Gray
/tdtdinput type=text name=vname/td/tr trtd colspan=2input type=submit name=submit/td/tr /table /form ?php } ? Rich -Original Message- From: Frank Keessen [mailto:[EMAIL PROTECTED]] Sent: 25 January 2003 11:33 To: Johannes Schlueter; [EMAIL PROTECTED] Subject: Re: [PHP] If... Else.. I'm not getting

Re: [PHP] If... Else.. I'm not getting it!

2003-01-25 Thread Frank Keessen
: RE: [PHP] If... Else.. I'm not getting it! You are using the post method not get so $_GET[] should be empty. Does this version of your code work? ?php if(isset($_POST['submit'])) { $vname=$_POST['vname']; echo hello $vname; } else { ? form action=? echo ($_SERVER['PHP_SELF

Re: [PHP] If... Else.. I'm not getting it!

2003-01-25 Thread Jason Wong
On Saturday 25 January 2003 19:18, Frank Keessen wrote: Hi, The register_globals = Off. Dit the basic echo ($submit) but it displays nothing.. Any thoughts somebody?? If register_globals is not enabled then you need to use $_POST['submit'] (just as you had to use $_POST['vname']).

[PHP] what else do i need in this upload script?

2002-11-15 Thread Tweak2x
ok, this is upload.php: form enctype=multipart/form-data action=upload.php method=post input type=hidden name=MAX_FILE_SIZE value=1000 Send this file: input name=userfile type=file input type=submit value=Send File /form what else do i need to make afile upload? -- PHP General Mailing List

RE: [PHP] what else do i need in this upload script?

2002-11-15 Thread Van Andel, Robert
? Robbert van Andel -Original Message- From: Tweak2x [mailto:Tweak2x;Carolina.rr.com] Sent: Friday, November 15, 2002 1:05 PM To: [EMAIL PROTECTED] Subject: [PHP] what else do i need in this upload script? ok, this is upload.php: form enctype=multipart/form-data action=upload.php method=post

Re: [PHP] what else do i need in this upload script?

2002-11-15 Thread Jason Wong
On Saturday 16 November 2002 05:04, Tweak2x wrote: ok, this is upload.php: form enctype=multipart/form-data action=upload.php method=post input type=hidden name=MAX_FILE_SIZE value=1000 Send this file: input name=userfile type=file input type=submit value=Send File /form what else do i

Re: [PHP] what else do i need in this upload script?

2002-11-15 Thread tweak2x
it dosnt work for me - Original Message - From: Jason Wong [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, November 15, 2002 4:20 PM Subject: Re: [PHP] what else do i need in this upload script? On Saturday 16 November 2002 05:04, Tweak2x wrote: ok

Re: [PHP] what else do i need in this upload script?

2002-11-15 Thread Jason Wong
On Saturday 16 November 2002 06:54, tweak2x wrote: it dosnt work for me sigh http://marc.theaimsgroup.com/?l=php-generalm=103678340124082w=2 -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

[PHP] if/else mail() problem..

2002-08-25 Thread eriol
I've got the following bit of code for an upload/feedback form.. Upload isn't a required field, but name, email and message are.. When someone submits this form with an upload used, it works fine.. But if an upload is excluded and they only fill in the required fields, I don't get an email.. I'm

[PHP] If else question

2002-04-23 Thread Jennifer Downey
Hi all, I am wondering. When you use an if else statement and a condition exists isn't the if part suppose to stop? Then if the condition doesn't exist it is suppose to do something else? I am wondering because I have a form that goes something like this. select such and such from the table if

Re: [PHP] If else question

2002-04-23 Thread Miguel Cruz
On Tue, 23 Apr 2002, Jennifer Downey wrote: I am wondering. When you use an if else statement and a condition exists isn't the if part suppose to stop? Then if the condition doesn't exist it is suppose to do something else? I am wondering because I have a form that goes something like this.

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
If and else expect to be followed by exactly 1 statement. To aggregate multiple statements as one, surround them with {curly braces}. I'm guessing you didn't do that, and you're seeing the execution of all but the first of the statements following the else. So it should be: if ($var1)

RE: [PHP] If else question

2002-04-23 Thread Leotta, Natalie (NCI/IMS)
Does it show the message and the form or just the message? -Natalie -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 12:23 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] If else question If and else expect to be followed by exactly 1

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 12:23 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] If else question If and else expect to be followed by exactly 1 statement. To aggregate multiple statements as one, surround them with {curly braces}. I'm guessing yo

RE: [PHP] If else question

2002-04-23 Thread Leotta, Natalie (NCI/IMS)
you could look into if no one else has any better ideas :-) -Natalie -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 12:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] If else question It shows both. Natalie Leotta [EMAIL PROTECTED] wrote

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
xpertise, but it's something you could look into if no one else has any better ideas :-) -Natalie -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 12:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] If else question It shows both. Natali

Re: [PHP] If else question

2002-04-23 Thread -BD-
Is this a nested if? (inside another if statement?) - Original Message - From: Jennifer Downey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 1:05 PM Subject: Re: [PHP] If else question I just looked at my hosting service thinkg it may have been because

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
01c1eae9$d58f4360$[EMAIL PROTECTED]... Is this a nested if? (inside another if statement?) - Original Message - From: Jennifer Downey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 1:05 PM Subject: Re: [PHP] If else question I just looked at my hosting servic

Fw: [PHP] If else question

2002-04-23 Thread Richard Emery
Subject: Re: [PHP] If else question No this is the first if statement but there are nested if's after that. I'd post the code but everyone yells at me about my coding style. If you promise not to yell I will post it. Jennifer -Bd- [EMAIL PROTECTED] wrote in message 001d01c1eae9$d58f4360$[EMAIL

RE: [PHP] If else question

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
Emery [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 7:41 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Fw: [PHP] If else question OK...this has dragged on... Jennifer, show us your ACTUAL code, including database access statements. We can't help you if you expect us to read

RE: [PHP] If else question

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
]] Sent: Tuesday, April 23, 2002 7:18 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] If else question No this is the first if statement but there are nested if's after that. I'd post the code but everyone yells at me about my coding style. If you promise not to yell I will post it. Jennifer -Bd

RE: [PHP] If else question

2002-04-23 Thread Fifield, Mike
] Subject: Re: [PHP] If else question No this is the first if statement but there are nested if's after that. I'd post the code but everyone yells at me about my coding style. If you promise not to yell I will post it. Jennifer -Bd- [EMAIL PROTECTED] wrote in message 001d01c1eae9$d58f4360$[EMAIL

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
Ok you asked for it. Don't say I didn't warn you. session_start(); $query = SELECT name FROM {$config[prefix]}_users WHERE uid={$session[uid]}; $ret = mysql_query($query); while($row = mysql_fetch_array($ret)) { $user = $row['name']; $query = SELECT uid, id, iname, image, quantity, type FROM

RE: [PHP] If else question

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
www.PHPBeginner.com // where PHP Begins -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 7:48 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] If else question Ok you asked for it. Don't say I didn't warn you. session_start(); $query

RE: [PHP] If else question

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
To: [EMAIL PROTECTED] Subject: Re: [PHP] If else question Ok you asked for it. Don't say I didn't warn you. session_start(); $query = SELECT name FROM {$config[prefix]}_users WHERE uid={$session[uid]}; $ret = mysql_query($query); while($row = mysql_fetch_array($ret)) { $user = $row['name

RE: [PHP] If else question

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
you've got something wrong in your code. Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 7:48 PM To: [EMAIL PROTECTED] Subject: Re: [PHP

Re: [PHP] If else question

2002-04-23 Thread Richard Emery
fetched via mysql_fetch_array() to ensure they contain valid data? - Original Message - From: Jennifer Downey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 12:48 PM Subject: Re: [PHP] If else question Ok you asked for it. Don't say I didn't warn you. session_start

Re: [PHP] If else question

2002-04-23 Thread -BD-
] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 12:48 PM Subject: Re: [PHP] If else question Ok you asked for it. Don't say I didn't warn you. session_start(); $query = SELECT name FROM {$config[prefix]}_users WHERE uid={$session[uid]}; $ret = mysql_query($query); while($row

RE: [PHP] If else question

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
Jennifer, satus! People are nervous here! Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 7:48 PM To: [EMAIL PROTECTED] Subject: Re: [PHP

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
rd, have you printed out all the values fetched via mysql_fetch_array() to ensure they contain valid data? - Original Message - From: Jennifer Downey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 12:48 PM Subject: Re: [PHP] If else question Ok y

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
eveloper www.PHPBeginner.com // where PHP Begins -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 7:48 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] If else question Ok you asked for it. Don't say I didn't warn you. session_start();

Re: [PHP] If else question

2002-04-23 Thread heinisch
Aeh, sorry - but is the 1 you test for actual a number or is it a string? I had made this mistakes earlier, so also try if ( $quantity == 1) Maybe I´m absolutely wrong, (PHP 3 knowledge) but Oliver At 23.04.2002 10:48, you wrote: Ok you asked for it. Don't say I didn't warn you.

AW: [PHP] If else question

2002-04-23 Thread Red Wingate
Statement ( try to let the script die(); after one the first while. red -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 23. April 2002 8:31 PM An: [EMAIL PROTECTED] Betreff: Re: [PHP] If else question Aeh, sorry - but is the 1 you test for actual

Re: [PHP] If else question

2002-04-23 Thread Miguel Cruz
incerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 7:48 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] If else question Ok y

Re: [PHP] If else question

2002-04-23 Thread Jason Soza
Message - From: Jennifer Downey [EMAIL PROTECTED] Date: Tuesday, April 23, 2002 10:26 am Subject: Re: [PHP] If else question Ok I have hard coded $quantity so it does = 0 and else still prints. Maxim Maletsky ) [EMAIL PROTECTED] wrote in message 004701c1eaf1$c915c6b0$92e3021a@machine52"

Re: [PHP] If else question

2002-04-23 Thread Jennifer Downey
I have it. I actually got it! I had the if statement in the wrong place. Here is what I did: if($quantity 1) { echo Sorry I can't seem to locate this item; } else { //check if form has been submitted if($submit) { } else { //if the form has not been submitted run the following echo FORM

[PHP] If...Else question

2002-03-14 Thread Brad Harriger
Is it legal for an if...else statement to span PHP code blocks? Here's an example: ? $a = 0; if ($a 5) { $b = 50; $c=500; // Take a break from php and put in some HTML ? HTML HEAD/HEAD BODYMORE HTML CODE HERE/BODY /HTML ? // Now back to the PHP code $d = 250; } else {

RE: [PHP] If...Else question

2002-03-14 Thread Vlad Kulchitski
- From: Brad Harriger [mailto:[EMAIL PROTECTED]] Sent: 14 ÂÅÒÅÚÎÑ 2002 Ò. 10:52 To: [EMAIL PROTECTED] Subject: [PHP] If...Else question Is it legal for an if...else statement to span PHP code blocks? Here's an example: ? $a = 0; if ($a 5) { $b = 50; $c=500; // Take a break from php and put

Re: [PHP] If...Else question

2002-03-14 Thread Nick Winfield
On Thu, 14 Mar 2002, Brad Harriger wrote: !-- snip -- ? // Now back to the PHP code $d = 250; } else { $e = Does not apply. } ? I have some code similar to this example. When I run the code in my browser, I get a parse error on the last line (?). Replace: $e = Does not

[PHP] anyone else been having this problem???

2002-03-01 Thread Ben Turner
I just developed a new site and some of the users that I have go to visit the site are prompted (under IE only) to download a language pack. Not sure why and to top all of that, the language pack it prompts them to download is blank Meaning the prompt doesnt say what language pack. So

Re: [PHP] anyone else been having this problem???

2002-03-01 Thread GENESiS DESiGNS
Hmm Whats the web site address? -GENESiS DESiGNS -Sean Kennedy -http://wwwgdesignsvcncom -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp

[PHP] If/else conditional statement ...

2001-12-23 Thread Robert Dyke
Hello: In ASP I can write a Conditional statement like this: % If $varA == True Then % Straight HTML in here that only displays if $varA == True % Else % Straight HTML in here that only displays if $varA != True % End if % Translating this to PHP doesn't work: ? If ($varA == True) { ? //

Re: [PHP] If/else conditional statement ...

2001-12-23 Thread Bogdan Stancescu
Make sure you close the accolade afterwords in PHP -- other than that, yes, it works just fine! For example this should work just fine: - ? for ($i=0;$i10;$i++) { if (!($i%3)) { ? Found a multiple of three! ? echo($i); ?br? } } ? -- Bogdan Robert Dyke wrote:

Re: [PHP] If/else conditional statement ...

2001-12-23 Thread Miles Thompson
What's the error, just a parse error on line xx? O tend to do a lot of echo 'ing, so this suggestion may not be much help. How about adding a semicolon? ? If ($varA == True) { ; ? Miles At 01:11 PM 12/23/2001 -0700, Robert Dyke wrote: Hello: In ASP I can write a Conditional statement like

Re: [PHP] If/else conditional statement ...

2001-12-23 Thread Bogdan Stancescu
Took a better look at your code -- you've capitalized true -- that may be it. Bogdan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] If/else conditional statement ...

2001-12-23 Thread Michael Sims
At 01:11 PM 12/23/2001 -0700, Robert Dyke wrote: Hello: In ASP I can write a Conditional statement like this: % If $varA == True Then % Straight HTML in here that only displays if $varA == True % Else % Straight HTML in here that only displays if $varA != True % End if % Translating this to

Re: [PHP] If/else conditional statement ... in an include file ...

2001-12-23 Thread Robert Dyke
I apologize for not including all of the information. I did this as an include file, which explains why it isn't working: !--- beginning of myinclude.php ? If ($varA == True) { ? ! --- end of myinclude.php --- ! beginning of testfile.php --- ? Include('myinclude.php'); ?

  1   2   >