Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Warning: Undefined array key "index_no" in C:xampphtdocs ruestudent eports.php on line 54 Fatal error: Uncaught TypeError: mysqli_fetch_array():

<?php
				$sql ="SELECT users.index_no,matokeo.CMT05101,matokeo.CMT05102,matokeo.CMT05103,matokeo.CMT05104,matokeo.CMT05105,matokeo.GPA,matokeo.Remarks FROM users INNER JOIN matokeo ON users.index_no = matokeo.index_no WHERE type='student',index_no ='".$_SESSION['index_no']."";
				$query = mysqli_query($con,$sql);
				while ($row2 =mysqli_fetch_array($query)) {?>
				   <tr style="text-align:center;">
				   	<td><?php echo $row2['index_no'];?></td>
				   	<td><?php echo $row2['CMT05101'];?></td>
				   	<td><?php echo $row2['CMT05102'];?></td>
				   	<td><?php echo $row2['CMT05103'];?></td>
				   	<td><?php echo $row2['CMT05104'];?></td>
				   	<td><?php echo $row2['CMT05105'];?></td>
				   	<td><?php echo $row2['GPA'];?></td>
				   	<td><?php echo $row2['Remarks'];?></td>
				   </tr>
				<?php }?>
 
PREVIOUS NEXT
Tagged: #Undefined #array #key #line #Fatal #Uncaught
ADD COMMENT
Topic
Name
9+9 =