Fatal error: Function name must be a string in C:\xampp\htdocs\test.php on line 6
<?php $conn = mysqli_connect('localhost','root','','bursary'); // Check connection if (!$conn()) { echo "Failed to connect to MySQL: "; } $result = mysqli_query($conn,"SELECT shortlist_id, user_id, application_status, amount_allocation FROM shortlist"); echo "<table border='0'> <tr> <th>Shortlist Id</th> <th>Applicant Id</th> <th>Application Status</th> <th>Ammount Allocated</th> </tr>"; while($row = mysqli_fetch_array($result)) { echo "<tr>"; echo "<td>" . strtoupper($row['shortlist_id']) . "</td>"; echo "<td>" . strtoupper($row['user_id']) . "</td>"; echo "<td>" . strtoupper($row['application_status']) . "</td>"; echo "<td>" . strtoupper($row['amount_allocation']) . "</td>"; echo "</tr>"; } echo "</table>"; mysqli_close($conn); ?>