guys please help, why I get this error from my codes: Parse error: syntax error, unexpected T_VARIABLE in C:\xampp\htdocs\bernardino_ed\Bloodchem.php on line 125

$username = $_SESSION['username'];
		// this is for the paganation of records
		$per_page = 2;
		$pages_query = mysql_query("select * from tblpatient_info i, tbllab_bloodchem b, tbldoctor_info d, tblpatient_pass p where p.RelationMR_no = i.MR_no and i.MR_no = b.RelationMR_no and b.RelationDoc_ID = d.ID_no and p.username = '$username'")
		$pages = ceil(mysql_result($pages_query, 0)) / $per_page);//this is line 125

I follow all the instructions the tutorial that I get.

sorry, Im just kind a stupid, I just forgot to put semi-colon

$username = $_SESSION['username'];
		// this is for the paganation of records
		$per_page = 2;
		$pages_query = mysql_query("select * from tblpatient_info i, tbllab_bloodchem b, tbldoctor_info d, tblpatient_pass p where p.RelationMR_no = i.MR_no and i.MR_no = b.RelationMR_no and b.RelationDoc_ID = d.ID_no and p.username = '$username'");
		$pages = ceil(mysql_result($pages_query, 0)) / $per_page);//this is line 125
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.