<?
include "../../connect/connect.php";
mysql_query("SET character_set_results=tis620");
mysql_query("SET character_set_client=tis620");
mysql_query("SET character_set_connection=tis620");
//$sql="select * from score WHERE username = '".$_SESSION['username']."' ";
//$sql ="SELECT * FROM score WHERE lesson = '3'";
$sql="select * from score WHERE username = '".$_SESSION['username']."' lesson = '1' AND lesson = '2' AND lesson = '3' AND lesson = '4' AND lesson = '5' ORDER BY lesson ";
$result=mysql_db_query(mydataunix,$sql);
$num=mysql_num_rows($result); if($num > 5) {