<?php $con=mysqli_connect("localhost","root","WW","DB_NAME"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * FROM users"); echo "<table border='1'> <tr> <th>ID</td> <th>username</th> <th>password</th> <th>email</th> <th>exp</th> <th>Dinar</th> <th>Cash</th> <th>Kills</th> <th>deaths</th> <th>Premium</th> <th>Coupons</th> <th>Edit</th> </tr>"; while($row = mysqli_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['id'] . "</td>" ; echo "<td>" . $row['username'] . "</td>"; echo "<td>" . $row['password'] . "</td>"; echo "<td>" . $row['email'] . "</td>"; echo "<td>" . $row['exp'] . "</td>"; echo "<td>" . $row['dinar'] . "</td>"; echo "<td>" . $row['cash'] . "</td>"; echo "<td>" . $row['kills'] . "</td>"; echo "<td>" . $row['deaths'] . "</td>"; echo "<td>" . $row['premium'] . "</td>"; echo "<td>" . $row['coupons'] . "</td>"; echo "</tr>"; } echo "</table>"; mysqli_close($con); ?>
Welke code moet ik gebruiken
om die tables te edite?
en de updates change in mijn Database?
N.A.Z = Negatieve Aandacht Zoeker