| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Old Sites/ees_request/externalpages/dataAdministration/lesson/ |
Upload File : |
<?php
// # Database connection
$host = "localhost";
$username = "root";
$password = "";
$db_name = "joomla";
$db_connection=mysql_connect($host, $username, $password, $db_name);
if (!$db_connection) {
die("<br><b>Database Error:</b> Could not connected. Try again later.<br>");
exit;
}
@mysql_select_db($db_name, $db_connection) or die("Unable to select database.");
mysql_query("SET NAMES 'utf8'", $db_connection);
?>
<form method="post" action="">
<table>
<tr>
<td>Τομέας</td><td><select name="section" disabled="disabled">
<?php /*
for( $hours = 1; $hours <= 10; $hours++ ) {
echo "<option id='$hours' value='$hours'>$hours</option>";
} */
?>
</select>
</td>
</tr>
<tr>
<td>Κωδικός Μαθήματος</td> <td><input type="text" id="idLesson" name="idLesson" size="10"></td>
</tr>
<tr>
<td>Τίτλος Μαθήματος</td> <td><input type="text" id="titleLesson" name="titleLesson" size="50"></td>
</tr>
<tr>
<td>Ώρες Διδασκαλίας</td><td><select name="teachingHours">
<?php
for( $hours = 1; $hours <= 10; $hours++ ) {
echo "<option id='$hours' value='$hours'>$hours</option>";
}
?>
</select>
</td>
</tr>
<tr>
<td>Εξάμηνο</td><td><select name="semester">
<?php
for( $semester = 1; $semester <= 7; $semester++ ) {
echo "<option id='$semester' value='$semester'>$semester</option>";
}
?>
</select></td>
</tr>
<tr>
<td></td><td>
</tr>
</table>
</form>