Jump to content

php/mysql problem


sliperypete

Recommended Posts

I got rid of that else statement, so now when I go to the page it doesnt display that message.

But now when I click close I dont get the:
[color=red][font=Verdana]The ticket is now closed good work![/font][/color]
message

Something is wrong with that update query and I have been staring at it for days with no idea...
OK that fixed it so that it runs through the insert process, but now I get the message:
The ticket is now closed good work!

But the data doesnt get inserted into the DB Here is the insert query again....

[code]$status = $_POST['status'];
$solution = $_POST['solution'];

if(isset($_POST['submit']))
{
    mysql_query ("UPDATE ticket
        SET status='$status',solution='$solution'
        WHERE ticket_id='$ticketid'") or die(mysql_error());
        echo "The ticket is now closed good work!";
}
?>
[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.