[PHP] Re: Comparing strings (revisited)

2009-05-24 Thread Nathan Rixham
Clancy wrote: For some time I have been working on a text based database, in which each entry contains one or more lines of data, with the various fields delimited by semicolons, e.g. A;b;20GM;Restaurant;090508 n;;;Arintji;; a;Federation Square;;; p;9663 9900;;;9663 9901;;i...@arintji.com.a

Re: [PHP] Re: Comparing Strings

2006-07-25 Thread Nils Holland
Nils Holland wrote: My guess is that PHP only sees / compares the strings up to a certain position. Is this possible? And if so, is there any way around this, so that my whole string is seen? Greetings and thanks in advance, Nils Maybe it's interpreting something as a number somewhere. Did

[PHP] Re: Comparing Strings

2006-07-24 Thread Adam Zey
Nils Holland wrote: Hi folks, well, I have a really dumb question: I have the following script at http://www.tisys.org/misc/test.php: Now I call it like this: http://www.tisys.org/misc/test.php?license=07017701608113717316604124522424203810525421000718312720710316211716018016522117016609621

Re: [PHP] Re: comparing strings - again!

2006-06-20 Thread Jochem Maas
John Nichel wrote: > Jochem Maas wrote: ... >> >> exactly. btw: var_dump() should be showing exactly where the white >> space is e.g.: >> >> >> code: >> > $s1 = "Company Director "; $s2 = "Company Director"; var_dump($s1, $s2); >> >> output: >> string(17) "Company Director " >> string(16) "Compan

Re: [PHP] Re: comparing strings - again!

2006-06-20 Thread John Nichel
Jochem Maas wrote: [EMAIL PROTECTED] wrote: var_dump gives Company Director string(17) Company Director string(16) Why would they be different? probably because there is either: 1. white space in the value in your data source 2. white space being outputted along side the value when creati

Re: [PHP] Re: comparing strings - again!

2006-06-20 Thread Jochem Maas
Ross wrote: > This does not work although when I echo out the strings they are exactly the > same. Strange! try using var_dump($compare1, $compare2); > > > "Ross" <[EMAIL PROTECTED]> wrote in message news:... >> if (isset($_POST['Submit'])) { >> //echo "post equals".$_POST['x']." corect >

Re: [PHP] Re: comparing strings - again!

2006-06-20 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > var_dump gives > > Company Director string(17) > > Company Director string(16) > > Why would they be different? probably because there is either: 1. white space in the value in your data source 2. white space being outputted along side the value when creating a form

Re: [PHP] Re: comparing strings - again!

2006-06-20 Thread ross
ROTECTED]> Cc: Sent: Tuesday, June 20, 2006 3:57 PM Subject: Re: [PHP] Re: comparing strings - again! Ross wrote: This does not work although when I echo out the strings they are exactly the same. Strange! try using var_dump($compare1, $compare2); "Ross" <[EMAIL PROTECTED]

Re: [PHP] Re: comparing strings - again!

2006-06-20 Thread ross
ent: Tuesday, June 20, 2006 3:57 PM Subject: Re: [PHP] Re: comparing strings - again! Ross wrote: This does not work although when I echo out the strings they are exactly the same. Strange! try using var_dump($compare1, $compare2); "Ross" <[EMAIL PROTECTED]> wrote in message

[PHP] Re: comparing strings - again!

2006-06-20 Thread Ross
This does not work although when I echo out the strings they are exactly the same. Strange! "Ross" <[EMAIL PROTECTED]> wrote in message news:... > if (isset($_POST['Submit'])) { > //echo "post equals".$_POST['x']." corect > is".$correct_answers[$page-1]; > $compare1 = $_POST['x']; > echo "p

[PHP] Re: Comparing strings

2001-11-01 Thread phantom
Must have been a missing semi-colon it works now. Thanks. <% echo $Action; if ($Action == "Submit") { echo " Process form"; } else { echo " Do Nothing"; } %> Cc Zona wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Phantom) wrote: > > > In PHP I have tried > > > > i

[PHP] Re: Comparing strings

2001-11-01 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Phantom) wrote: > In PHP I have tried > > if ($Action == "Submit") but I get a parse error in that statement. > What am I doing wrong? Thank you. I did an echo $Action to confirm > that it's value is Submit. If the variable is set as you've