Andy Grayndler   
  K N O W L E D G E B A S E
Author Options:

Logout
Change Password
List Articles
'; } else { $authorguest = 'Create Guest Article'; echo ' Login
Register
Forgot Password
'; } echo '
Options:

'; if($num) { echo ' Back
'; } ?> Search/Browse
' . $authorguest; ?>
Ask a Question
KB Admin
Main Categories:
(sub-categories , articles)

'; include_once ('articlecount.php'); echo '

Suggest a Category

'; } else { echo "

Article Info:

Added: $date
Views: $views
"; if($score) { echo "Score: $score
"; } //when viewing an article we have been provided the authorid for the article - we will now query the database to get the article writers name. $authorquery = "SELECT FirstName, LastName FROM authors WHERE AuthorID='$authorid'"; $result = mysql_query($authorquery); while ($row = mysql_fetch_array ($result, MYSQL_ASSOC)) { $authorname = $row['FirstName'] . ' ' . $row['LastName']; } if($authorid == 0) {$authorname = 'Guest'; } echo " Author: $authorname
"; } ?>