Advertisement
adisumardiyasa

aw

Jul 8th, 2014
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Awk 0.61 KB | None | 0 0
  1. //Pengambilan Data
  2. $a = mysql_query("select * from twitter_access_tokens where order by rand() limit ".$jumlah."");
  3. $i=0;
  4. while ($b = mysql_fetch_array($a)) {
  5. $oauth_token[$i] = $b["oauth_token"];
  6. $oauth_secret[$i] = $b["oauth_token_secret"];
  7. $i++; }
  8. // -------------------------
  9.  
  10. // Favorit Status
  11. for ($i=0;$i<$jumlah;$i++) {
  12. $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $oauth_token[$i], $oauth_secret[$i]);
  13. $connection->post('favorites/create'.$favid ); }
  14. flush();
  15. // ----------------------------
  16. echo '<center><font size="+1"><h3>BERHASIL MENAMBAHKAN FAVORIT!</h3></font></center>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement