Jump to content

Parse error: syntax error, unexpected T_IF in C:\xampp\htdocs\admin\updates_deta


Danny620

Recommended Posts

Parse error: syntax error, unexpected T_IF in C:\xampp\htdocs\admin\updates_details.php on line 278

 

while ($data = mysqli_fetch_array($r, MYSQLI_ASSOC)) {
echo '<table width="100%" border="1" cellpadding="5" cellspacing="5">
  <tr>
    <td width="11%"><strong>Download</strong></td>
    <td width="34%"><strong>Update By: ' . $data['update_by'] . '</strong></td>
    <td width="48%"><strong>Date Created:</strong> ' . $data['dr'] . '</td>
    <td width="7%"><a href="delete.php?item=update&id=' . $data['update_id'] . '"><img src="../images/delete-icon.png" width="24" height="24" alt="delete" /></a></td>
  </tr>
  <tr>
    <td colspan="4">File: ' . if($data['file'] == 'Yes'){ $data['file']; } . 'Click Here to Download</td>
  </tr>
  <tr>
    <td colspan="4"><p>' . $data['update_msg'] . '</p></td>
    </tr>
</table>';
} // End of WHILE loop.

while ($data = mysqli_fetch_array($r, MYSQLI_ASSOC)) {
$temp = '<table width="100%" border="1" cellpadding="5" cellspacing="5">
  <tr>
    <td width="11%"><strong>Download</strong></td>
    <td width="34%"><strong>Update By: ' . $data['update_by'] . '</strong></td>
    <td width="48%"><strong>Date Created:</strong> ' . $data['dr'] . '</td>
    <td width="7%"><a href="delete.php?item=update&id=' . $data['update_id'] . '"><img src="../images/delete-icon.png" width="24" height="24" alt="delete" /></a></td>
  </tr>
  <tr>
    <td colspan="4">File: ';
if($data['file'] == 'Yes'){$temp .= $data['file']; } 
$temp.= 'Click Here to Download</td>
  </tr>
  <tr>
    <td colspan="4"><p>' . $data['update_msg'] . '</p></td>
    </tr>
</table>';
echo $temp;
} // End of WHILE loop.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.