Location: PHPKode > projects > JBB Board > jbb/statustabelle.php
<html><head><title>Statustabelle anlegen</title></head>
<?php
        include ('color.inc');
        include ('status.inc');
        include ('mysqlvar.php');
        function statusanlegen ($s)
         {
           global $db;
           $query="INSERT INTO status (status, statusname) VALUES ('', '".$s."')";
           $result=mysql_query($query,$db);
         }
        $db=mysql_connect($dbserver,$dbuser,$dbpass);
        mysql_select_db($dbname,$db);
        if ($db)
          {
             array_walk ($st, "statusanlegen");
             echo "<b class=\"allFine\">".$text[34]."</b>";
          }
        mysql_close($db);
        echo'</body></html>';
?>
Return current item: JBB Board