3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $messages = ""; $sqli = mysqli_query($dbc,"SELECT * FROM fox ORDER BY data DESC LIMIT 20"); $i = 0; $productCount = mysqli_num_rows($sqli); if ($productCount > 0) { while($row = mysqli_fetch_array($sqli)){ $id = $row["id"]; $msg_1 = $row['msg_1']; $msg_email = $row['msg_email']; $assunto = $row['assunto']; $mensagem = $row['mensagem']; $data = $row['data']; $size = $row['size']; if (!$size){ echo ' X';} else {echo "<img src='../style/check.jpg' width='20' height='20' />";} if ($i % 2 == 0) { $messages .= ' <tr bgcolor="#f0eded"> <td align="center">' . $msg_1 .'</td> <td align="center">' . $msg_email .'</td> <td align="center">' . $assunto .'</td> <td align="center">' . $mensagem . '</td> <td align="center">' . $data .'</td> <td align="center">' . $size .'</td> <td align="center"><a href="index.php?id=' . $id . '">Respond</a>&nbsp;<b>/</b>&nbsp;<a href="#">Eliminate</a></td> </tr>'; } else { $messages .= ' <tr background-color= "#ffffff"> <td align="center">' . $msg_1 .'</td> <td align="center">' . $msg_email .'</td> <td align="center">' . $assunto .'</td> <td align="center">' . $mensagem . '</td> <td align="center">' . $data .'</td> <td align="center">' . $size .'</td> <td align="center"><a href="index.php?id=' . $id . '"> Respond</a>&nbsp;<b>/</b>&nbsp;<a href="#">Eliminate </a></td> </tr>'; } $i++; } }else{ $messages = "<b>No msg in DB.</b>";s } ?>
Output for 5.3.0 - 5.4.19
Parse error: syntax error, unexpected '}' in /in/BKBGU on line 42
Process exited with code 255.