QUESTIONS
Posted: Mon Oct 12, 2009 11:47 pm
Good day sirs,
I’m undergoing the programme ‘PHP and MySQL’ at your online facility. It should interest you to know that my USER ID is: FRANKLIN4EDUCATION.
I have the following questions and would appreciate an answer proffered to them:
1.
# Is this the symbol used in the examples:
<?php # dateform.php
$page_title = 'Calendar Form';
include ('./includes/header.html');
2. Pls explain these two symbols in the context of usage as show below (line 3 in x; and line 3 in y; in the case of y, I suppose it means that $day ‘is less than or equal to 31’):
3. Pls explain the symbol = as used in line ‘3’ in y. Kindly tell me its name since = = stands for ‘is equal to’.
(x)
// Make the months pull-down menu.
echo '<select name="month">';
foreach ($months as $key => $value) {
echo "<option value=\"$key\">$value</option>\n";
}
echo '</select>';
(y)
// Make the days pull-down menu.
echo '<select name="day">';
for ($day = 1; $day <= 31; $day++) {
echo "<option value=\"$day\">$day</option>\n";
}
echo '</select>';
Thank you.
Franklin.
I’m undergoing the programme ‘PHP and MySQL’ at your online facility. It should interest you to know that my USER ID is: FRANKLIN4EDUCATION.
I have the following questions and would appreciate an answer proffered to them:
1.
# Is this the symbol used in the examples:
<?php # dateform.php
$page_title = 'Calendar Form';
include ('./includes/header.html');
2. Pls explain these two symbols in the context of usage as show below (line 3 in x; and line 3 in y; in the case of y, I suppose it means that $day ‘is less than or equal to 31’):
3. Pls explain the symbol = as used in line ‘3’ in y. Kindly tell me its name since = = stands for ‘is equal to’.
(x)
// Make the months pull-down menu.
echo '<select name="month">';
foreach ($months as $key => $value) {
echo "<option value=\"$key\">$value</option>\n";
}
echo '</select>';
(y)
// Make the days pull-down menu.
echo '<select name="day">';
for ($day = 1; $day <= 31; $day++) {
echo "<option value=\"$day\">$day</option>\n";
}
echo '</select>';
Thank you.
Franklin.