Einaml die hinzufuegen!:
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: Add'; $hmenu = 'Add'; $design = new design ( $title , $hmenu ); $design->header(); ?> <form id="form1" name="form1" method="post" action=""> <label></label> <table width="477" border="0"> <tr> <td width="306"><strong>Server IP:</strong></td> <td width="161"><input type="serverip" name="serverip" id="textfield" /></td> </tr> <tr> <td><strong>Server Port:</strong></td> <td><input type="text" name="serverport" id="textfield2" /></td> </tr> <tr> <td><strong>Server Query Port:</strong></td> <td><input type="text" name="serverqport" id="textfield3" /></td> </tr> <tr> <td><strong>Community/Clanname dem der Server gehört:</strong></td> <td><input type="text" name="inhaber" id="textfield6" maxlength="30" /></td> </tr> <tr> <td><strong>Community/Clan Homepage:</strong></td> <td><input type="text" name="inhaberurl" id="textfield4" /></td> </tr> <tr> <td><strong>Server Info:</strong></td> <td><textarea name="serverinfo" rows="5" id="textfield5" maxlength="50"></textarea></td> </tr> <tr> <td><strong>Passwort:</strong></td> <td><label> <select name="passwort" id="select"> <option value="Ja">Ja</option> <option value="Ja">Nein</option> </select> </label></td> </tr> </table> <p> <label> <input type="submit" name="button" id="button" value="Absenden und eintragen" /> </label> </p> </form> <?php require_once('include/includes/config.php'); require_once('include/includes/func/db/mysql.php'); $ip = $_POST[serverip]; $port = $_POST[serverport]; $qport = $_POST[serverqport]; $passwort = $_POST[passwort]; $inhaber = $_POST[inhaber]; $inhaberurl = $_POST[inhaberurl]; $info = $_POST[serverinfo]; $clan = '<a href="http://$inhaberurl">$inhaber</a>'; db_query ("INSERT INTO `prefix_teamspeak` (`inhaber`) VALUES ('$clan'); INSERT INTO `prefix_teamspeak` (`ip`) VALUES ('$ip:$port'); INSERT INTO `prefix_teamspeak` (`passwort`) VALUES ('$passwort'); INSERT INTO `prefix_teamspeak` (`qport`) VALUES ('$qport'); INSERT INTO `prefix_teamspeak` (`info`) VALUES ('$info'); "); $design->footer(); ?>
Einmal abrufen:
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); defined ('admin') or die ( 'only admin access' ); $title = $allgAr['title'].' :: List'; $hmenu = 'List'; $design = new design ( $title , $hmenu ); $design->header(); require_once('include/includes/config.php'); require_once('include/includes/func/db/mysql.php'); $abf = 'SELECT * FROM prefix_teamspeak'; $erg = db_query($abf); while ($row = db_fetch_object($erg)) { echo '<table width="643" border="0"> <tr> <td width="140"><strong>Name</strong></td> <td width="143"><strong>IP</strong></td> <td width="146"><strong>Passwort</strong></td> <td width="196"> </td> </tr> </table> <table width="643" border="0"> <tr> <td width="138">'.$row->inhaber.'</td> <td width="145">'.$row->ip.'</td> <td width="146">'.$row->passwort.'</td> <td width="196">Mehr</td> </tr> </table>'; } echo '<p> </p> <p> </p>'; echo '<center> <a href="?iplogger-del"><img src="include/images/icons/del.gif" />IpLogger-Leeren<img src="include/images/icons/del.gif" /></a> </center>'; echo '<center><b><a href="http://patrick.hassmann-reisemobile.de">Modul (c) by Patrick Hassmann </a></b></center>'; $design->footer(); ?>
Und wie vergebe ich den eingetragenen Daten Ids, Das ich ein post (eintrag) Zusammen löschen kann?
verwendete ilchClan Version: 1.1