-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. Link to comment https://forums.phpfreaks.com/topic/201397-ajax-progress/ 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. Link to comment https://forums.phpfreaks.com/topic/201397-ajax-progress/#findComment-1058088 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 ! Link to comment https://forums.phpfreaks.com/topic/201397-ajax-progress/#findComment-1068646 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.