Created
April 19, 2014 20:05
-
-
Save noondreams/11095869 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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=iso-8859-1" /> | |
<title>Untitled Document</title> | |
</head> | |
<body> | |
<table width="35%" border="1" align="center"> | |
<tr> | |
<td width="19%" bgcolor="#B00058"><div align="center">معدل</div></td> | |
<td width="40%" bgcolor="#B00058"><div align="center">نام خانوادگی </div></td> | |
<td width="25%" bgcolor="#B00058"><div align="center">نام </div></td> | |
<td width="16%" bgcolor="#B00058"><div align="center">شماره</div></td> | |
</tr> | |
<?php | |
$page = mysql_real_escape_string ( intval ( $_GET[ 'page' ] ) ) ; | |
$recStart = $page * 10 ; | |
$con = mysql_connect ( "localhost" , "root" , "" ) ; | |
$db_selected = mysql_select_db ( "abrar" , $con ) ; | |
mysql_query ( "set names utf8" , $con ) ; | |
$res = mysql_query ( "SELECT * FROM amozesh LIMIT {$recStart},10" , $con ) ; | |
while ( $row = mysql_fetch_assoc ( $res ) ) | |
{ | |
?> | |
<tr> | |
<td><?php echo $row[ 'id' ] ; ?></td> | |
<td><?php echo $row[ 'name' ] ; ?></td> | |
<td><?php echo $row[ 'lname' ] ; ?></td> | |
<td><?php echo $row[ 'avg' ] ; ?></td> | |
</tr> | |
<?php } ?> | |
</table> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment