Jump to content

drewdan

Members
  • Posts

    47
  • Joined

  • Last visited

Everything posted by drewdan

  1. What code are you using to query your database? <?php $conn = mysqli_connect("localhost", "yourusername", "yourpassword") or die(mysqli_error($conn)); mysqli_select_db($conn, "yourdb") or die(mysqli_error($conn)); $client = $_GET['client']; $query = "select * from tablename where client='$client'"; $result = mysqli_query($conn, $query); $count = mysqli_num_rows($result); if($count==0) { echo "No Results Found"; } else { $table = '<table>'; while($array=mysqli_fetch_array($result)) { $table .= '<tr><td>' . $array['name'] . '</td><td>' . $array['otherdetail'] . '</td></tr>' } $table .= '</table>'; } echo $table; ?> or something like that anyway is what you will need to write to query a database and generate a html table to be output into the browser
×
×
  • 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.