while

A problem with JavaScript size animation

Hi! I am in the middle of writing a JavaScript library and I have hit a problem, I have a function that resizes elements, that all works good but I also have and animated version that resizes them over a specified time frame. The script seems to freeze when ever it is run and it seems to be down to my while loop, here is my code. // Res...

VBA While loop using an SQL statement as my While.

Hi there, I'm writing some code behind some spreadsheets and I need to loop through some code, like getting data from a database doing some formulas and moving the data to a new sheet. My code for getting the data from the database is getting all of the values in multiple columns where the data has not been reported and has the same fil...

Foreach Just Echoing First Entry

Apologies if I should know better, but I've been struggling for quite a while with this one. I have a mysql db with 300 rows. It contains 4 columns, "eventid", "player1", "player2", "score". In the game, player1 gives various others (player2) a score out of 100. What I'm trying to do is show the logged in user (player1) a table of the...