mercredi 14 octobre 2015

How to show a specific row? Using SQLite + HTML5 + Javascript

How to show a specific row? In HTML + PHP I would do something like this:

<a href="show.php?id=5">See the ID #5</a>

And the show.php

<?php 
$query = mysql_query("SELECT name FROM table WHERE id=$_GET[id]");
$row = mysql_fethc_assoc($query);
echo $row['name'];
?>

But how can I do this with only HTML + Sqlite?

Aucun commentaire:

Enregistrer un commentaire