Well here is what actually updates the twitter status it connects to the db further up and uses a while to run this stuff
require("config/config.php");
require("config/opendb.php");
require ("Twitter.class.php");
//Grab content from MySQL
$data = mysql_query("SELECT * FROM users") or die(mysql_error());
// keeps getting the next row until there are no more to get
while($row = mysql_fetch_array( $data )) {
// check whether get variables are existing and read xml file
if (file_exists($path.$file)) {
$xml = simplexml_load_file($path.$file);
$xbltweet2 = $xml->Gamertag;
$xbltweet = $xml->PresenceInfo->Info;
$xbltweet1 = $xml->PresenceInfo->Info2;
//if ($xml->PresenceInfo->Online == false){
//Some Code Once I figure It Out
//}else{
//data to get
$tuser = $row[twitteruser];
$tpassword = $row[twitterpass];
//echo $tuser
$tweet = new Twitter("$tuser", "$tpassword");
// Set a new status. This can be called multiple times on the same object.
// The update() function returns true if the status update was successful or
// false if an error occured. In case of an error, a string describing the error
// is stored in the error variable of the object (in our case $tweet->error)
$success = $tweet->update("$xbltweet2 : $xbltweet : $xbltweet1");
if ($success) echo "Tweet successful!";
echo $tweet->error;
}
}