php-windows Digest 13 Nov 2004 17:22:25 -0000 Issue 2467
Topics (messages 24974 through 24975):
Re: PHP and IIS6 on Win2k3
24974 by: Jason Barnett
foreach Problem
24975 by: MikeA
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Dean L. Howen wrote:
HI,
I have been successful config PHP 5 on IIS5 , but not with IIS6 on Win2k3. I
have done by following the install instruction.
The error is "404-This page cannot display"
Tell me what to do continue...
Thanks
404 is the file not found error. Are you possibly pointing to the wrong url for
your test page?
--- End Message ---
--- Begin Message ---
I am new to PHP (4.3.9) and have been working on an open source application
helping someone. At the same time I am learning PHP and honing my skills.
I've looked in the docs that came with PHP and tried to follow the example
but it was not well documented.
I have the following function. The foreach seems to loop the correct number
of times BUT I get the following results.
single, married, divorced, widowed, single
instead of
single, married, divorced, widowed, separated
I have similiar problems with very similiar code.
Where have I gone wrong? Any help is appreciated as well as a little
education of why I went wrong and why the right way.
Thanks.
Mike
function set_maritalstatus_select($block, $selected = '') {
global $t;
$array_maritalstatus = array("S" => "Single", "M" => "Married", "D" =>
"Divorced", "W" => "Widowed", "P" => "Separated");
$t->set_block($block, 'MaritalStatusSelectOption',
'MaritalStatusSelections');
foreach($array_maritalstatus as $Key=>$maritalstatus)
{
$t->set_var('MaritalStatusID', $maritalstatus[$Key]);
select_var('MaritalStatusSelected', in_array($maritalstatus[$Key],
$selected));
$t->set_var('MaritalStatusName',
$array_maritalstatus[$maritalstatus[$key]]);
$t->parse('MaritalStatusSelections', 'MaritalStatusSelectOption', true);
}
}
--- End Message ---