schieb.de > schieb > Aktuelle Nachrichten auf Twitter

Aktuelle Nachrichten auf Twitter

include "schiebdb.inc";

$tag = getenv("QUERY_STRING");

if (strlen($tag))
echo "

Stichwort: $tag

“;

if ($tag)
$ret = mysql_query(“SELECT * FROM twitter_tags
WHERE tag='” . addslashes(strtolower($tag)) . “‘”);
else
$ret = mysql_query(“SELECT * FROM twitter_tags”);

if ($tag) {
$record = mysql_fetch_assoc($ret);
$twitter = unserialize($record[‘result’]);

foreach ($twitter->results as $tweet) {
echo “

from_user/statuses/$tweet->id’>from_user/statuses/$tweet->id’>Tweet lesen…

“;
}
}
else while ($rec = mysql_fetch_assoc($ret))
echo “” . $rec[‘tag’] . “\n”;

?>