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

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

javascript - Which segment of a polyline was clicked? -

c# - Avoiding duplicate methods for Task and Task<T> -