sql - Check if a table has X amount of records -


i have script connects database , inserts data based on form selections

function(tx) {             ensuretableexists(tx);             var firstname = firstnamebox.value;             var playingposition = playingpositionbox.value;             var sql = 'insert yellows (firstname, playingposition) values ("' + firstname + '","' + playingposition + '")';             tx.executesql(sql);         }, 

what best method search if table has 5 entries. if database has 5 entries reject insert statement , inform user there no space.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -