3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query = "SELECT naam, datum,sum(duuropdracht) FROM `ploegopdrachten` WHERE datum = '$timewo' GROUP BY naam"; if ($result = mysqli_query($connect, $query)) { while ($get = mysqli_fetch_assoc($result)) { echo "<tr><td>", $get['naam'], "</td>"; echo "<td>", $get['datum'], "</td>"; echo "<td>", $get['sum(duuropdracht)'], " uur </td>"; $query1 = "SELECT urenpdag FROM `ploegen` where naam = '$get[naam]'"; if($query2 = mysqli_query($connect, $query1)){ while($get2 = mysqli_fetch_assoc($query2)){ echo "<td>", $get2['urenpdag'], "</td></tr>"; } } } } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $timewo in /in/9cv8C on line 2 Fatal error: Uncaught Error: Call to undefined function mysqli_query() in /in/9cv8C:3 Stack trace: #0 {main} thrown in /in/9cv8C on line 3
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
46.78 ms | 401 KiB | 8 Q