Jump to content

Add Variables From Database To Twitter API


A1SURF.us

Recommended Posts

Hello!! I don't know to much PHP but I manage to get along just fine most of the time.  If you don't know, Twitters API class lets you post from anywhere using this snippet  here:

 

$tweet = new Twitter("USERNAME", "PASSWORD"); //login and password for twitter//
$success = $tweet->update("  www.domain.com lorum ipsum lorum ipsum lorum ipsum"); // twitter update - I want to add variables here//
if ($success) echo "Tweet Succesful"; 
else echo $tweet->error;

 

How do I add these database variables into the tweet update?

<?=$ad["ad_description"];?>

<?=$ad["ad_id"];?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.