How to insert name filed in the query, but to the table to pass the corresponding id of that name

Advertisements I have 2 tables: genres_table: bands_table: genre_id | genre_name band_id | genre_id | band_name 1 | Rock 1 | 8 | Blink 182 3 | Jazz 3 | 1 | Foo Fighters 8 | Punk 4 | 1 | RHCP Genre_id is a foreign key in bands_table taken from genre_id in genres_table. I would… Read More How to insert name filed in the query, but to the table to pass the corresponding id of that name

How can I make a set of numbers that increase every 30 seconds to line up in an ascending order?

Advertisements If you run this javascript code below, var i = 20220215155; function increment(){ i++; document.getElementById(‘period’).innerHTML += i + "<br />" + "<hr />" ; } setInterval(‘increment()’, 32100); you will see that after every 30 seconds, the numbers (20220215155) gets incremented and each increment is printed on a new line. E.g; **20220215156 20220215157 20220215158 20220215159… Read More How can I make a set of numbers that increase every 30 seconds to line up in an ascending order?