Need assistance with my support ticket system
<p>Okay so i am currently trying to create a support ticket system, i have everything setup but        the ticket status checker. 
    This is how the database works:
    ticknum = random generated number given to client once ticket is created
    tickid = auto incremented id, has no real use
    status = 0 or 1 0=unanswered 1=answered
how do i make a little text field where they can check the ticket status just by typing in   there ticket number?
here's what i have so far for code(it doesnt work):</p>

<p>Here is a link to the code:     <a href="http://pastebin.com/iX63YWRH" rel="nofollow">http://pastebin.com/iX63YWRH</a> </p>

<p>Please assist me with this, all i'm getting from it is a blank white page.</p>
