To jest plik FAQ.php
<?php /*---------------------------------------------------+ | eXtreme-Fusion Content Management System | +----------------------------------------------------+ | Copyright (c) 2005 eXtreme Crew | | <a href=\"http://www.extreme-fusion.pl\" target=\"_blank\">http://www.extreme-fusion.pl</a> | +----------------------------------------------------+ | Engine Php-fusion by Nick Jones | | <a href=\"http://www.php-fusion.co.uk/\" target=\"_blank\">http://www.php-fusion.co.uk/</a> | +----------------------------------------------------+ | Released under the terms & conditions of v2 of the | | GNU General Public License. For details refer to | | the included gpl.txt file or visit <a href=\"http://gnu.org\" target=\"_blank\">http://gnu.org</a> | +----------------------------------------------------*/ require_once "maincore.php"; require_once "subheader.php"; require_once "side_left.php"; include LOCALE.LOCALESET."faq.php"; opentable($locale['400']); $result = dbquery("SELECT * FROM ".$db_prefix."faq_cats ORDER BY faq_cat_name"); $rows = dbrows($result); if ($rows != 0) { $columns = 2; $counter = 0; while($data = dbarray($result)) { $num = dbcount("(faq_id)", "faqs", "faq_cat_id='".$data['faq_cat_id']."'"); echo "<td align='center' valign='top'><a href='".FUSION_SELF."?cat_id=".$data['faq_cat_id']."'>".$data['faq_cat_name']."</a> <span class='small2'>($num)</span>\n"; if ($data['faq_cat_description'] != "") echo "<br>\n<span class='small'>".$data['faq_cat_description']."</span>"; $counter++; } } else { } closetable(); } else { if (!isNum($cat_id)) fallback(FUSION_SELF); if ($data = dbarray(dbquery("SELECT * FROM ".$db_prefix."faq_cats WHERE faq_cat_id='$cat_id'"))) { opentable($locale['401'].": ".$data['faq_cat_name']); $rows = dbcount("(*)", "faqs", "faq_cat_id='$cat_id'"); if ($rows != 0) { $result = dbquery("SELECT * FROM ".$db_prefix."faqs WHERE faq_cat_id='$cat_id' ORDER BY faq_id LIMIT $rowstart,15"); $numrows = dbrows($result); $i = 1; while ($data = dbarray($result)) { $i++; } closetable(); if ($rows != 0) echo "<div align='center' style='margin-top:5px;'>".makePageNav($rowstart,15,$rows,3,FUSION_SELF."?cat_id=$cat_id&")."\n</div>\n"; } else { closetable(); } } else { redirect(FUSION_SELF); } } require_once "side_right.php"; require_once "footer.php"; ?>
A to jest mój formularz:
<?php <center><h3>Dodaj Grę</h3></center> <hr> Nazwa Gry: <input type="text" name="" value="" size=""> <p><p> Twórca Gry: <input type="text" name="" value="" size=""> <p></p> Kategoria: <select name="asd" size="1"> <option>Przygodowa</option> <option>Akcja</option> <option>Strzelanka</option> <option>RPG</option> <option>MMORPG</option> <option>Wysigowa</option> <option>Samochodowa</option> <option>Platformówka</option> <option>Inna</option> </select> <p> </p> Opis Gry: <input type="text" name="" value="" > <br> <p></p> <center><input type="submit" name="Dodaj" value="Dodaj Grę" size="20" align="middle"></center> ?>
Proszę o pomoc, z góry dzięki