Hi there. I am new at SQLITE & PHP and i need some help. I will make an little website to show and edit my database. I will check if an given ID is in the database. I get a link from my list.php to edit the entry: test.php?id=2 Now will will check if that id is in my database. If that id is in my db goto edit this entry and if not i need an error message. Many thanks for your help. Tobi My code atm looks ike this: <?php // check if id exist // i dont know this part ;( $db = new SQLite3("./db/MonsterDB.db"); $res = $db->query("select * from monsterinfo WHERE id='$_GET[id]'"); while ($dsatz = $res->fetchArray(SQLITE3_ASSOC)) if ($dsatz["id"] = "$_GET[id]") { echo "ID " . "$_GET[id]" ." exist"; } else { echo "ID " . "$_GET[id]" ." does not exist"; } ?> <div style="border: 1px solid #ccc; width:850px; padding: 15px 15px; margin-left: 10px;"> <table class="admin_overview_a"> <?php $db = new SQLite3("./db/MonsterDB.db"); $res = $db->query("select * from monsterinfo WHERE id='$_GET[id]'"); while ($dsatz = $res->fetchArray(SQLITE3_ASSOC)) { echo "<tr><td>Monster in bearbeitung: ".$dsatz["number"]." ".$dsatz["name"]."</td></tr>"; echo "<tr><td colspan=2 width=380> </td></tr>"; echo "<form>"; echo "<tr><td width=80 class='admin_overview_c'>ID:</td><td width=300><input type=text value=".$dsatz["id"]."></td></tr>"; echo "<tr><td width=80 class='admin_overview_c'>Nummer: </td><td width=300><input type=text value=".$dsatz["number"]."></td></tr>"; echo "<tr><td width=80 class='admin_overview_c'>Name: </td><td width=300><input type=text value=".$dsatz["name"]."></td></tr>"; echo "<tr><td width=80 class='admin_overview_c'>Name: </td><td width=300><input type=text value=".$dsatz["name2"]."></td></tr>"; echo "<tr><td width=80 class='admin_overview_c'>Name: </td><td width=300><input type=text value=".$dsatz["name3"]."></td></tr>"; echo "<tr><td> </td></tr>"; echo "<tr><td><input type=button value=speicher></td></tr>"; echo "</form>"; } $db->close(); ?> <tr><td colspan="4"> </td></tr> </table> </div>