Hi.... i have tried to changed the code for the following using the migration tool... i cannot make head nor tail of it... can anyone help me with the change over to .NET C#?
any help would be greatly appreciated as i am kinda lost
<?php include "faq_config2.php" ?>
<?php include "header.php" ?>
<!-- MAIN TEXT -->
<h1>Administration Page</h1>
<?php
include "faq_config.php";
if (isset($category)) {
print "<h3>$cat_name</h3>\n";
print "<p style=\"margin-top: -1em\"><a href=\"$PHP_SELF\">FAQ Admin</a> | <a href=\"faq_admin_faq_add.php?category=$category&cat_name=$cat_name\" onclick=\"NewWindow(this.href,'FAQ_Add','530','400','no');return false\">Add New FAQ to $cat_name</a></p>\n";
$result = mssql_query("SELECT * FROM faqs WHERE category_id = '$category'");
print "<table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">\n";
while ($row = mssql_fetch_array($result)) {
print "<tr>
<td class=\"QA\" valign=\"top\">Q</td>
<td valign=\"top\"><pre class=\"question\">$row[question]</pre></td>
</tr>\n";
print "<tr>
<td class=\"QA\" valign=\"top\">A</td>
<td valign=\"top\"><pre class=\"answer\">$row[answer]</pre></td>
</tr>\n";
print "<tr>
<td> </td>
<td class=\"options\" valign=\"top\"><a href=\"faq_admin_faq_edit.php?edit=$row[id]&category=$category&cat_name=$cat_name\" onclick=\"NewWindow(this.href,'FAQ_Edit','530','380','no');return false\">Edit</a> | <a href=\"faq_admin_faq_delete.php?delete=$row[id]&category=$category&cat_name=$cat_name\" onclick=\"NewWindow(this.href,'FAQ_Delete','350','250','no');return false\">Delete</a></td>
</tr>\n";
print "<tr>
<td colspan=\"2\"> </td>
</tr>\n";
}
print "</table>\n";
}
else {
print "<h3>FAQ Categories</h3>\n";
print "<p style=\"margin-top: -1em\">Action: <a href=\"faq_admin_cat_add.php\" onclick=\"NewWindow(this.href,'cat_add','320','270','no');return false\">Add Category</a> | <a href=\"faq_admin_cat_edit.php\" onclick=\"NewWindow(this.href,'cat_edit','520','280','no');return false\">Edit Category</a> | <a href=\"faq_admin_cat_delete.php\" onclick=\"NewWindow(this.href,'cat_del','520','210','no');return false\">Delete Category</a></p>";
$result = mssql_query("SELECT * FROM faqcategories");
print "<ul>\n";
while ($row = mssql_fetch_array($result)) {
print "<li class=\"category\"><a href=\"$PHP_SELF?category=$row[id]&cat_name=$row[category]\">$row[category]</a></li>\n";
}
print "</ul>\n";
}
mssql_close($link);
?>
<!-- END MAIN TEXT -->