// bof Auto Tweet.
include_once 'twitter/twitter.php';
// CHANGE: path to your store (i.e.
http://example.com/store
$myStoreUrl = 'http://pcitshop.com';
// CHANGE: Your stores Twitter username and password
$twitter = new Twitter("username","password");
//build full link to product
$produrl = $myStoreUrl . '/index.php?main_page=product_info&cPath=' . $current_category_id . '&products_id=' . $products_id ;
// send tweet.
$prodname = $sql_data_array['products_name'];
$mytweet = $prodname . ' now available at ' . $produrl;
$twitter->updateStatus($mytweet);
// eof Auto-Tweet