Hi,
i have an example for send tweet without autenticate, this work fine, but when i put this in other project, i have an error.
i have this…
for($i=0; $i<count($xml->entry); $i++)
{
$crtEntry = $xml->entry[$i];
$account = $crtEntry->author->uri;
$image = $crtEntry->link[1]->attributes()->href;
$tweet = str_replace(’<a href=’, ‘<a target="_blank" href=’, $crtEntry->content);
$id = $crtEntry->id;
$sql=mysql_query("select code from codes where state=0 order by rand()");
$showfetch=mysql_fetch_array($sql);
$cod = $showfetch[‘code’];
if(mysql_query(“INSERT INTO tweets (user, tweet, date, tui) VALUES (’”.$account."’, ‘".$tweet."’,now(),’".$id."’)"))
{
$tweety->post(‘statuses/update’, array(‘status’ => ‘Congrats ‘.$account.’ you code is: ‘.$cod.’ http://www.webpage.com/’));
mysql_query(“UPDATE codes SET state=‘1’ WHERE code like ‘$cod’”);}
But when i Insert en my table and post in twitter, this is crash. my web page is blank.
How i can post in twitter from the webpage, without exit from the page ?
Sorry 4 my english.
Grettings from Chile