testpanel.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script> <script type="text/javascript"> // gets reached budget var auto_refresh = setInterval( function () { $('#tile1 li').load('findlastloaded.php').fadeIn("slow").slideUp(function() { $(this).animate({height: "show"}, 600, "easeOutBounce");//opens only }); }, 3000); // refresh every 5000 milliseconds </script> <ul> <div id="tile1"> <b>Over Budget</b> <li>Loading Data....</li> </div> </ul> |
findlastloaded.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<?php include('../cmdataconn.inc'); $result = mysql_query("SELECT campaign,conversions,id FROM cmdata ORDER BY RAND() limit 6"); while($row = mysql_fetch_array($result)) { $campaign = substr($row['campaign'], 0, 25); echo "<li>".$campaign = $campaign; echo " - ".$name = $row['conversions']; echo " - ".$id = $row['id']; echo "</li>"; } ?> |