Course.php: better spacing around the '=' or '!=' operator.
							parent
							
								
									c1aee1e457
								
							
						
					
					
						commit
						623634ba30
					
				
							
								
								
									
										34
									
								
								Course.php
								
								
								
								
							
							
						
						
									
										34
									
								
								Course.php
								
								
								
								
							|  | @ -141,29 +141,29 @@ include 'Header.php'; | |||
| 			    echo "<br><div class='alert alert-warning'>No active assignments now.</div>"; | ||||
| 			} else { | ||||
| 			    while($row = mysqli_fetch_assoc($result1)) { | ||||
| 				$title=$row['Title']; | ||||
| 				$type=$row['Type']; | ||||
| 				$Marks=$row['Marks']; | ||||
| 				$ins=$row['Instructions']; | ||||
| 				$posted=$row['Posted_Date']; | ||||
| 				$deadline=$row['Deadline']; | ||||
| 				$att1=$row['Attachment_link_1']; | ||||
| 				$att2=$row['Attachment_link_2']; | ||||
| 				$att3=$row['Attachment_link_3']; | ||||
| 				$att4=$row['Attachment_link_4']; | ||||
| 				$labid=$row['Lab_Report_ID']; | ||||
| 				$title = $row['Title']; | ||||
| 				$type = $row['Type']; | ||||
| 				$Marks = $row['Marks']; | ||||
| 				$ins = $row['Instructions']; | ||||
| 				$posted = $row['Posted_Date']; | ||||
| 				$deadline = $row['Deadline']; | ||||
| 				$att1 = $row['Attachment_link_1']; | ||||
| 				$att2 = $row['Attachment_link_2']; | ||||
| 				$att3 = $row['Attachment_link_3']; | ||||
| 				$att4 = $row['Attachment_link_4']; | ||||
| 				$labid = $row['Lab_Report_ID']; | ||||
| 				$days_remaining = date_diff(date_create($deadline), date_create())->format('%a days, %h hours, %i minutes'); | ||||
| 				$full_link = "<a href='~\..\Lab_Report_Assignments\\$att1'>$att1</a>"; | ||||
| 
 | ||||
| 				if($att2!=""){ | ||||
| 				    $full_link= $full_link."| <a href='~\..\Lab_Report_Assignments\\$att2'>$att2</a>"; | ||||
| 				if($att2 != "") { | ||||
| 				     $full_link = $full_link."| <a href='~\..\Lab_Report_Assignments\\$att2'>$att2</a>"; | ||||
| 				} | ||||
| 				if($att3!=""){ | ||||
| 				    $full_link= $full_link."| <a href='~\..\Lab_Report_Assignments\\$att3'>$att3</a>"; | ||||
| 				if($att3 != "") { | ||||
| 				     $full_link = $full_link."| <a href='~\..\Lab_Report_Assignments\\$att3'>$att3</a>"; | ||||
| 				} | ||||
| 
 | ||||
| 				if($att4!=""){ | ||||
| 				    $full_link= $full_link."| <a href='~\..\Lab_Report_Assignments\\$att4'>$att4</a>"; | ||||
| 				if($att4 != "") { | ||||
| 				    $full_link = $full_link."| <a href='~\..\Lab_Report_Assignments\\$att4'>$att4</a>"; | ||||
| 				} | ||||
| 				echo "<div class='card mt-md-2' style='word-wrap: break-word;'><div class='card-body'>
 | ||||
|   <h5 class='card-title'>$title</h5> <h6 class='card-subtitle''>($Marks Marks, $type)</h6> <br> <p class='card-text'> $ins </p> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue