Random tweet


#1

I want to make twitt randomly but using this code -> rand (1,388))); why that appears just numbers only? :frowning: please enlighten.

and is a full code ->

$a = mysql_query(“select * from twitter_access_tokens ORDER BY RAND(0) DESC LIMIT 9999999”);
while($b = mysql_fetch_array($a))
{
$eksekusi = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $b[‘oauth_token’], $b[‘oauth_token_secret’]);
$eksekusi->post(‘statuses/update’, array(‘status’ => $_POST[‘text’] . ‘ext my tweet *’ . rand(1,388)));