Professional Documents
Culture Documents
If u login as ADMIN:
Using this code you can ADD books to the file.
YOU can UPDATE the existing record of books.
You can delete the books.
You can Return Books to the stock.
You can display all the books inside the record.
And issue a book to the Students.
IF u login as STudent:
You can only Check IN/OUT status of the book.
Both student section and Admin sections should be protected by password Can only have
a access to own section on entering correct password.
4. Search feature (by name , Std ID, Book ID, Author ) (Student)
Students can search books by by name , Std ID, Book ID, Author
<html>
<head>
<title>MyMP3s v0.1</title>
</head>
<body>
<option value="Artist">Artist</option>
<option value="Song">Song</option>
<option value="Genre">Genre</option>
<option value="Folder">Folder</option>
</select>
</form>
<?
include("dbclass.php");
if ($submit) {
$Conn = $DBObject->Connect();
$TheQuery = "Select FileName, FileSize, Folder, Song, Artist, Album, Year, Genre from mp3list
WHERE " . $Type . "='" . $searchstring . "' OR FileName LIKE '%" . $searchstring . "%'";
$Result = $DBObject->Query($TheQuery);
if ($fieldslisted == FALSE) {
$Fields = array();
$Fields = $QueryInfo->GetFieldNames($Result);
echo "<tr>\n";
for ($j=0;$j<=count($Fields);$j++) {
echo "</th>\n";
echo "</tr>\n";
$fieldslisted = TRUE;
echo "<tr>\n";
for ($i=0;$i<=count($row);$i++) {
$String = " ";
else {
$String = $row[$i];
echo "<td>\n";
echo "</td>\n";
echo "</tr>\n";
if ($QueryInfo->GetAffectedRows($Conn) == "") {
$DBObject->Close($Conn);
echo "</table>";
?>
</body>
</html>