I\'ve got the following working code, the code simply posts a status and an image om my twitter page.
require_once(\'TwitterAPIExchange.php\');
$
You have to implement the slight logic here-- Now on click of submit do following 1.store the image in the some folder of your project (Refer the below code to store the image in the folder)
upload_file.php //upload file code here
2.store text and upload the image name in the database. 3.Now you have the images in the image folder... and you also have the image name and the corresponding message in your database.
4. $tweetmsg = $_POST['post_text']; $twimage = "Images/twitter-icon.png"; //before this
retrive the last inserted row and fetch message and image name
$tweetmsg = $row['msg'];
$image = $row['image_name'];
$twimage = "Images/".$image;
I hope this will be work for you.. Thanks