A little help from the gurus.
I have this script that shows fields from 1 table. I want to add a button that will automatically change Status field from Open to Closed[php]<?
include_once("./sql_connect.php ");
// Get Title of documents
$getdceventSql = "SELECT Id, Event, Remedy, Status, SubmittedBy FROM dc_event WHERE Status = 'Open'";
$getdceventResu lt = mysql_query($ge tdceventSql);
$content = $content. "<br />\n";
while (list($Id, $Event, $Remedy, $Status, $SubmittedBy) = mysql_fetch_row ($getdceventRes ult))
{
$content = $content.
"Id: $Id</a> <br />\n";
$content = $content.
"Event: $Event</a> <br />\n";
$content = $content.
"Ticket #: $Remedy</a> <br />\n";
$content = $content.
"Current Status: $Status</a> <br />\n";
$content = $content.
"Submitted By: $SubmittedBy</a> <br />\n";
}
echo "<div id='content'>"
.$content
."</div>";
?>[/php]any help of clues would be appreciated
I have this script that shows fields from 1 table. I want to add a button that will automatically change Status field from Open to Closed[php]<?
include_once("./sql_connect.php ");
// Get Title of documents
$getdceventSql = "SELECT Id, Event, Remedy, Status, SubmittedBy FROM dc_event WHERE Status = 'Open'";
$getdceventResu lt = mysql_query($ge tdceventSql);
$content = $content. "<br />\n";
while (list($Id, $Event, $Remedy, $Status, $SubmittedBy) = mysql_fetch_row ($getdceventRes ult))
{
$content = $content.
"Id: $Id</a> <br />\n";
$content = $content.
"Event: $Event</a> <br />\n";
$content = $content.
"Ticket #: $Remedy</a> <br />\n";
$content = $content.
"Current Status: $Status</a> <br />\n";
$content = $content.
"Submitted By: $SubmittedBy</a> <br />\n";
}
echo "<div id='content'>"
.$content
."</div>";
?>[/php]any help of clues would be appreciated
Comment