First php code

I can’t get anything I have in an array to display in a web browser. Correction, I can’t get almost anything that I try to echo to show up. Please help me.

[code]

Interest Array [/code]

[php]
$RatesArray[0] = “$InterestRate1 = .0725”;
$RatesArray[1] = “$InterestRate2 = .0750”;
$RatesArray[2] = “$InterestRate3 = .0775”;
$RatesArray[3] = “$InterestRate4 = .0800”;
$RatesArray[4] = “$InterestRate5 = .0825”;
$RatesArray[5] = “$InterestRate6 = .0850”;
$RatesArray[6] = “$InterestRate7 = .0875”;

echo $RatesArray[0];

$RatesArray[1];

$RatesArray[2];

$RatesArray[3];

$RatesArray[4];

$RatesArray[5];

$RatesArray[6];

[/php]

Keep you php code inside <?php ?>

[php]

Interest Array <?php

$RatesArray[0] = “$InterestRate1 = .0725”;
$RatesArray[1] = “$InterestRate2 = .0750”;
$RatesArray[2] = “$InterestRate3 = .0775”;
$RatesArray[3] = “$InterestRate4 = .0800”;
$RatesArray[4] = “$InterestRate5 = .0825”;
$RatesArray[5] = “$InterestRate6 = .0850”;
$RatesArray[6] = “$InterestRate7 = .0875”;

echo $RatesArray[0].’
’.
$RatesArray[1].’
’.
$RatesArray[2].’
’.
$RatesArray[3].’
’.
$RatesArray[4].’
’.
$RatesArray[5].’
’.
$RatesArray[6].’
’;
?>[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service