basic-php-10-poweredit.php / php
<?php require('config.php'); conn); result = mysql_query(result) > 0) { while (result)) { row['id']] = numpwr = count(thresh = 5; cols = min(pwrlist)/percol = ceil(count(cols); i = 0; foreach (id => i>0) && (percol == 0)) { </td>\n<td valign=\"top\">"; } powerchk .= "<input type=\"checkbox\" name=\"powers[]\" " . "value=\"pwr<br>\n"; delbutton = " <tr> <td colspan=\"<input type=\"submit\" name=\"action\" value=\"Delete Powers\"> <font size=\"2\" color=\"#990000\"><br><br> deleting will remove all associated powers<br> from characters as well -- select wisely</font> </td> </tr>"; } else { powerchk = "<div style=\"text-align:center;width:300; font-family:Tahoma,Verdana,Arial\">No Powers entered...</div>"; cols = 1; } ?> <html> <head> <title>Add/Delete Powers</title> </head> <body> <img src="CBA_Tiny.gif" align="left" hspace="10"> <h1>Comic Book<br>Appreciation</h1><br> <h3>Editing Character Powers</h3> <form action="char_transact.php" method="post" name="theform"> <table border="0" cellpadding="5"> <tr bgcolor="#FFCCCC"> <td valign="top"><?php echo </td> </tr> <?php echo delbutton; ?> <tr> <td colspan="<?php echo <input type="text" name="newpower" value="" size=20> <input type="submit" name="action" value="Add Power"> </td> </tr> </table> </form> <a href=<charlist.php>>Return to Home Page</a> </body> </html>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.