/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // Get the Twitter search results // Prints the returned array to the page so you can see what's up // print_r($xml); ?> <ol id="search-results"> <?php foreach($xml->entry as $e){ $user_name = $e->author->name; $user_link = $e->author->uri; ?> <li class="hentry status search_result"> <span class="thumb vcard author"> <a class="tweet-url profile-pic" href="<?=$user_link?>"><img alt="" src="<?=$thumb?>" width="48" height="48" /></a> </span> <span class="status-body"> <a class="tweet-url screen-name" href="<?=$user_link?>"><?=$user_name?></a> <span id="msgtxt6185685937" class="msgtxt en"><?=$e->content?></span> </span> </li> <?php } ?> </ol>