"" 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 = "IDEA Editorial Board"; require("_includes/header.inc"); printf (""); printf("
 "); if ($id > 0) { if($row->photo == null or $row->photo == "") { printf("

%s \n", $row->authname ); } else { if ($row->in_memoriam == 1) { $border = ' border="4" border-color="black" '; } else { $border = ''; } printf("

%s \n", $row->photo,$row->authname ); } printf("%s

", $row->authbio); if($row->displayemail > 0 )printf("

E-mail: %s

", $row->authemail, $row->authemail); } else { $query = sprintf("select * from bnw_edboard where active=1 order by sortorder asc, authsortname asc"); queryAndPrint($query); echo "


Former Editorial Board members

\n"; $query = sprintf("select * from bnw_edboard where active=2 order by sortorder asc, authsortname asc"); queryAndPrint($query); } printf("
\n"); require("_includes/footer.inc"); function queryAndPrint($query) { $result = mysql_query($query) or die("4 There has been an error accessing the database. Please try again later. \n\n"); if(mysql_num_rows($result)>0) { printf(""); $col = 0; for ($i=0; $i < mysql_num_rows($result); $i++) { ++$col; if($col == 1 ) { printf(""); } if(!mysql_data_seek ($result, $i)) { printf ("", $i); continue; } if(!($row=mysql_fetch_object($result))) { continue; } if ($row->in_memoriam == 1) { $class = ' class="people_in_memoriam" '; } else { $class = ' class="people_img" '; } printf("\n", $my_url, $row->authorid, $row->thumbnail, $my_url, $row->authorid, $row->authname); if($col == 3 ) { printf(""); $col = 0; } } printf("
Error seeking row %d
%s
\n"); } } ?>