sql >> Database >  >> RDS >> Mysql

Mysql:waarden van kolom onder een andere kolom weergeven

$db=new mysqli("localhost","root","","test");

$result=$db->query("select date,project_id,name ... from tableName");

while(list($date,$project_id,$name)=$result->fetch_row()){
   echo "<div class='record'>";
      echo "<div class='field'><strong>Date:</strong> $date</div>";
      echo "<div class='field'><strong>Project:</strong> $project_id</div>";
      echo "<div class='field'><strong>Name:</strong> $name</div>";
   echo "</div>";

 }



  1. SQLite - Kan databasebestand niet openen

  2. PHP's in_array versus MySQL SELECT

  3. Bool-ondersteuning Oracle SQL

  4. Kolom bijwerken zodat deze de rijpositie bevat