0

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.

1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by Ctechnology24
0

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
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.