include "expire.phph"; include "database.phph"; $sql = "select type, body, title, author_id from document where id = $id"; $fetchdoc = mysql($db, $sql); if ($fetchdoc != 0) { $docdata = mysql_fetch_object($fetchdoc); if (is_object($docdata)) { //display regular content ?>
$site = getenv("HTTP_HOST"); if ($site == "style.hellyeah.com") { $site = "style"; } elseif ($site == "tech.hellyeah.com") { $site = "tech"; } elseif ($site == "sex.hellyeah.com") { $site = "sex"; } else { $site = "main"; } ?>
![]() |
|
![]() |
|
//GET AUTHOR INFO $author_select = "select shortname, name, url, email, description, pronoun from author where id = $docdata->author_id"; $authfetch = mysql($db, $author_select); $author = mysql_fetch_object($authfetch); ?> echo $author->name; ?> wrote this. if ($author->url != "") { ?>echo $author->pronoun; ?> has a url";?>">website } if ($author->email != "") { ?>echo "$author->pronoun"; ?> also has email } ?> |
|
![]() |
![]() |