Skip to content

Instantly share code, notes, and snippets.

@noondreams
Created April 19, 2014 20:04
Show Gist options
  • Save noondreams/11095829 to your computer and use it in GitHub Desktop.
Save noondreams/11095829 to your computer and use it in GitHub Desktop.
<!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">&#1605;&#1593;&#1583;&#1604;</div></td>
<td width="40%" bgcolor="#B00058"><div align="center">&#1606;&#1575;&#1605; &#1582;&#1575;&#1606;&#1608;&#1575;&#1583;&#1711;&#1740; </div></td>
<td width="25%" bgcolor="#B00058"><div align="center">&#1606;&#1575;&#1605; </div></td>
<td width="16%" bgcolor="#B00058"><div align="center">&#1588;&#1605;&#1575;&#1585;&#1607;</div></td>
</tr>
<?php
$page = mysql_real_escape_string ( $_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