Viewing file: certificate_details.php (3.7 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include('session.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Student Registration Delete </title> <style> table { width: 100%; border-collapse: collapse; } /* Zebra striping */ tr:nth-of-type(odd) { background: #eee; } th { background: #333; color: white; font-weight: bold; } td, th { padding: 6px; border: 1px solid #ccc; text-align: left; } </style> </head> <center> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC"> <tr> <td colspan="4" bgcolor="#FFFF00"><?php include('header.php'); ?></td> </tr> <table width="100%">
<td colspan="4" bgcolor="#FFFF00"><?php include('menubar.php'); ?></td> </tr> <tr> <td colspan="3" bgcolor="#CCCCCC"> <?php include('sessisionbar.php'); ?></td> </tr> </table>
<form id="form1" name="form1" method="post" action="registration_edit.php"> <?php
$link = mysqli_connect("localhost",'itce_user','rb!itc838',"itce_data"); // Check connection if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } // Attempt select query execution $sql = "select * from certificate order by ID DESC"; if($result = mysqli_query($link, $sql)) { if(mysqli_num_rows($result) > 0) { echo "<table width=\"1030\" border=\"1\" bgcolor=\"yellow\" style='table-layout:fixed' class='w3-table w3-bordered w3-striped w3-border w3-hoverable'>\n>\n"; echo " <tr>\n"; echo " <td align='left'>SERIAL</td>\n"; echo " <td align='left'>PHOTO</td>\n"; echo " <td align='left'>CERTIFICATE NO</td>\n"; echo " <td align='left'>PRINT</td>\n"; echo " <td align='left'>ROLL NO</td>\n"; echo " <td align='left'>STUDENT NAME</td>\n"; echo " <td align='left'>MOBILE NO</td>\n"; echo " <td align='left'>COURSE NAME</td>\n"; echo " <td align='left'>ADMISSION DATE</td>\n"; echo " <td align='left'>COURSE FEE</td>\n";
echo " <td align='left'>BRANCH</td>\n";
echo " <td align='left'>DELETE</td>\n";
echo "</table>"; while($row = mysqli_fetch_array($result)) { $sr=$sr+1; $photo="<img border='5' width='100%' height='100' src=http://itce.co.in/branch/upload/".$row['photo'] .">"; echo "<table width=\"1030\" border=\"1\" bgcolor=\"#FFCC33\" style='table-layout:fixed' class='w3-table w3-bordered w3-striped w3-border w3-hoverable'>\n"; echo " <tr>\n"; echo " <td align='left'><b>$sr</b></td>\n"; echo " <td align='left'>$photo</td>\n"; echo " <td align='left'>$row[certificate_no]</td>\n"; echo " <td align='left'><a href='phpqrcode/index.php?ID=" .$row[certificate_no]. "'>PRINT</a></td>\n"; echo " <td align='left'>$row[roll_no]</td>\n"; echo " <td align='left'>$row[name]</td>\n"; echo " <td align='left'>$row[mobile]</td>\n"; echo " <td align='left'>$row[course_name]</td>\n"; echo " <td align='left'>$row[course_join_date]</td>\n"; echo " <td align='left'>$row[certifcate_issue_date]</td>\n"; echo " <td align='left'>$row[branch]</td>\n"; echo " <td align='left'><a href='delete_certificate.php?ID=" .$row[ID]. "'>delete</a></td>\n"; echo "</table>";
$count++ ; } echo "</table>"; // Free result set mysqli_free_result($result); } else{ echo "Record Not found"; } } else{ echo "ERROR: Could not able to execute $sql. " . mysqli_error($link); } $certificatnonew=$certificatnonew+1; // Close connection mysqli_close($link); ?> </form> <?php include('footer.php'); ?> </body></center> </html>
|