function ViewWord() { $q = "SELECT * FROM words WHERE word_id = " . ($_GET['id'] + 0); $res = mysql_query($q); if (!($row = mysql_fetch_assoc($res))) { $c .= '<br /><div align="center" class="error">Error... no entry found</div>'; } else { $GLOBALS['page_title'] = htmlesc($row['word_title']) . ' - ' . $GLOBALS['page_title']; $c .= '<table align="center" cellspacing="0" cellpadding="1">'; $c .= '<tr><td height="10"></td></tr>'; $c .= ' <tr> <td valign="top" class="word">' . htmlesc($row['word_title']) . '</td> <td width="30"></td> <td valign="top" width="400">' . LNtoBR($row['word_desc']) . '</td> </tr> <tr> <td colspan="3" height="10"></td> </tr> <tr> <td colspan="3"> <b>Additional comments : </b><br /> ' . LNtoBR($row['word_comments']) . ' </td> </tr> '; $c .= '<tr><td height="10"></td></tr>'; $c .= '</table>'; } $GLOBALS['content'] .= $c; $GLOBALS['content'] .= '<br /><br /><div align="center"><a href="display.php?' . $GLOBALS['tofrom'] . '">Back</a></div>'; }
function da($array) { echo LNtoBR(print_r($array, 1)); }