require("_admin/bnwglobal.php"); $bnw_meta_title = "Contributing authors"; $bnw_meta_description = "List of authors who contributed their articles to IDEA, a Journal of Social Issues"; if ($id == null ) { } else { $query = sprintf("select * from bnw_authors where authorid=%d", $id); $result = mysql_query($query) or die("3 There has been an error accessing the database. Please try again later. \n\n"); if(mysql_error() <> "" or mysql_num_rows($result) == 0) { $id = null; } else { if(!mysql_data_seek ($result, 0)) { $id = null; } else { if(!($row=mysql_fetch_object($result))) { $id = null; } else { $bnw_meta_title = $row->authname; $bnw_meta_description = "Contributing author at IDEA, a journal of social issues"; } } } } require("_includes/header.inc"); printf (""); printf("
");
if ($id > 0)
{
if($row->photo == null or $row->photo == "")
printf(" %s \n", $row->authname ); else printf(" %s \n", $row->photo,$row->authname ); printf("%s ", $row->authbio); if($row->displayemail > 0 )printf("E-mail: %s ", $row->authemail, $row->authemail); printf("Publications available on IDEA: \n");
$query2 = sprintf("select * from bnw_articles where authorid=%d order by pub_date desc", $id);
$result2 = mysql_query($query2)
or die("4 There has been an error accessing the database. Please try again later. \n\n");
if(mysql_num_rows($result2)>0)
{
for ($i=0; $i < mysql_num_rows($result2); $i++)
{
if(!mysql_data_seek ($result2, $i))
{
printf (" The following authors have contributed their work to IDEA:
|