-Karl- Posted May 11, 2010 Share Posted May 11, 2010 So, I have a script in PHP which will grab usernames from a database, then, it will carry out a function for each of the usernames. Grab the data, then store it in a database. I'm a complete noob with Ajax. But how could I utilize Ajax to show the progress. Such as if the database has 18 rows, it will display "1 out of 18", then "2 out of 18", and so on. Quote Link to comment Share on other sites More sharing options...
pengu Posted May 14, 2010 Share Posted May 14, 2010 http://www.w3schools.com/php/php_ajax_database.asp - Changing this as required. Quote Link to comment Share on other sites More sharing options...
Kizzie33 Posted June 6, 2010 Share Posted June 6, 2010 you could, first to you connect get all the rows, store that.start a different variable at 0, then each user you process just ++ that and then edit a div <div id="hi"></div> t= amount fo users x= 0 function{ x++ do your user stuff what ever document.getelementById('hi').innerHTML = x."/".t } If that makes sence ? I would make sure the spellings right if you copy and paste that ^] hope it helps ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.