Web Analytics Made Easy -
StatCounter Help with deleting Applications Code - CodingForum

Announcement

Collapse
No announcement yet.

Help with deleting Applications Code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with deleting Applications Code

    I have an Applications form. When it gets sent to the pannel. There is no option to delete it. Here is the code.

    PS: I have placed in bold where i would like the delete button.

    Code:
    <link href="style.css" rel="stylesheet" type="text/css" />
    <?php
    
    require("config.php");
    
    if(!isset($users[username])){ echo("Please login to view this page."); exit; }
    
    if($_GET['do'] == "show"){
    
    $user = $_GET['user'];
    
    $getjobappbyname = mysql_query("SELECT * FROM `jobapps` WHERE `habboname` = '$user' ;");
    $job = mysql_fetch_array($getjobappbyname);
    
    echo("<span class=\"style1\">Job Apps</span><br><br><img align=\"right\" src=\"http://www.habbo.co.uk/habbo-imaging/avatarimage?user=$job[habboname]&action=wav&direction=3&head_direction=3&gesture=sml&size=l\">
    Showing $job[habboname]'s Job Application:
    <br>
    Habbo Name: <b>$job[habboname]</b>
    <br>
    Job: <b>$job[job]</b>
    <br>
    Experiance: <b>$job[experiance]</b>
    <br>
    Why: <b>$job[why]</b>
    <br>
    Email: <b>$job[email]</b>
    <br>
    IP: <b>$job[ip]</b><br>  ;
    
    
    [B]
    
     I would like the Delete Button here[/B]
    
    
    
    
    
    } elseif($_GET['cat'] == "view"){
    echo("<span class=\"style1\">Job Apps</span><br><br>");
    $getapps = mysql_query("SELECT * FROM `jobapps` where `job` = '$_GET[job]' ;");
    while ($apps = mysql_fetch_array($getapps))
    { echo ("<a href=\"jobapps.php?do=show&job=$apps[cat]&user=$apps[habboname]\">$apps[habboname]</a><br>"); }
    } else {
    
    echo("<span class=\"style1\">Job Apps</span><br><br>Choose a category you want to read the applications for:<br>");
    
    $getjcats = mysql_query("SELECT * FROM `jcats` ;");
    while ($cat = mysql_fetch_array($getjcats))
    { echo ("<a href=\"jobapps.php?cat=view&job=$cat[cat]\">$cat[cat]</a> "); }
    }
    ?>

    Thanks, TJ
Working...
X