Jump to content

Recommended Posts

This page stopped working, it shows nothing, and generates no errors, How can I fix it?

<?php
include("inc/dbconn_open.php");

if (empty($_SESSION['AdminLogin']) OR $_SESSION['AdminLogin'] <> 'OK' ){
?>
     <script language="javascript">
        //window.close();
    </script>
<?php
    exit();
}

if (isset($_POST['AdminID'])){
    $AdminID = $_POST['AdminID'];
} elseif (isset($_GET['AdminID'])){
    $AdminID = $_GET['AdminID'];
} else {
?> 
    <script language="javascript">
        //window.close();
    </script>
<?php
    exit();
}

if (isset($_POST['WorkOrderID'])){
    $WorkOrderID = $_POST['WorkOrderID'];
} elseif (isset($_GET['WorkOrderID'])){
    $WorkOrderID = $_GET['WorkOrderID'];
} else {
?>
    <script language="javascript">
        //window.close();
    </script>
<?php
    exit();
}

if (isset($_POST['ReturnPage'])){
    $ReturnPage = $_POST['ReturnPage'];
} elseif (isset($_GET['ReturnPage'])){
    $ReturnPage = $_GET['ReturnPage'];
} else {
    $ReturnPage = "Welcome.php";
}

$sql = "SELECT WorkOrderID, CreatedDate, IONumber, OrderType, Advertiser, AccountNum, Address, City, ";
$sql .= "State, Zip, Phone, Fax, ContactName, URL, AdvertisingAgency, ClickThru, Impressions, AdSize, ";
$sql .= "DATE_FORMAT(StartDate, '%m/%e/%Y') AS StartDates, DATE_FORMAT(EndDate, '%m/%e/%Y') AS EndDates, CPM, FlatRate, ";
$sql .= "IncludeSites, Package, Matrix, DATE_FORMAT(MatrixDate, '%m/%e/%Y') AS MatrixDates, Salesperson, SalespersonID, ";
$sql .= "SalespersonEmail, SalespersonExt, NameCampaign, SpecialInstructions, AdContactName, AdContactPhone, AdContactEmail, ";
$sql .= "Artwork, DATE_FORMAT(PrintDate, '%m/%e/%Y') AS PrintDates, ElectronicAd, EmailProof, ";
$sql .= "DATE_FORMAT(ProofDate, '%m/%e/%Y') AS ProofDates, ArtInstructions, Focus, BannerSize, BannerSizeOther, BannerType, ";
$sql .= "BannerTypeOther, ExtraImage1, ExtraImage1Desc, ExtraImage2, ExtraImage2Desc, ExtraImage3, ExtraImage3Desc, ";
$sql .= "ExtraImage4, ExtraImage4Desc, ExtraImage5, ExtraImage5Desc FROM workorderform WHERE WorkOrderID='$WorkOrderID'";
$result = mysql_query ($sql);
/* changed this */
$qr1 = mysql_query ($sql)
  or die ("Query failed: " . mysql_error() . " Actual query: " . $query);
/* end of added change */ 
$row = mysql_fetch_object ($result);
$sql2 = "SELECT Date_FORMAT(CreatedDate,'%m/%e/%Y %h:%i %p') AS OrderDate, Location, WorkOrderName, Status FROM workorders ";
$sql2 .= "WHERE WorkOrderID='$WorkOrderID'";
$result2 = mysql_query ($sql2);
$row2 = mysql_fetch_object ($result2);


if (mysql_num_rows($result) == 0) {
?>
    <script language="javascript">
        //window.close();
    </script>
<?php
    exit();
}
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Online Work Order Form</title>
<LINK REL="STYLESHEET" HREF="inc/style.css">

<script type=text/javascript>
<!-- 
    var DHTML = (document.getElementById || document.all || document.layers);
    function getObj(name){
        if (document.getElementById){
            this.obj = document.getElementById(name);
            this.style = document.getElementById(name).style;
        } else if (document.all) {
            this.obj = document.all[name];
            this.style = document.all[name].style;
        } else if (document.layers) {
            this.obj = document.layers[name];
            this.style = document.layers[name];
        }
    }
    
    function change(name) {
        var x = new getObj(name);
        if (x.style.visibility == 'visible') {
            x.style.visibility = 'hidden';
            x.style.display = 'none';
        } else {
            x.style.visibility = 'visible';
            x.style.display = '';
        }
    }
    
    function Show(name){
    var x = new getObj(name);x.style.visibility = 'visible'
    var x = new getObj(name);x.style.display = ''
    }
    
    
    function Hide(name){
    var x = new getObj(name);x.style.visibility = 'hidden'
    var x = new getObj(name);x.style.display = 'none'
    }
        
    function status(name) {
        var x = new getObj(name);
        if (x.style.visibility == 'visible') {
            return true;
        } else {
            return false;
        }
    }
    
    function ArtworkChange(tmp) {
        if (tmp == "YES") {
            Show('AdInfo');
            Show('AdDim');
            Show('AdType');
        } else {
            Hide('AdInfo');
            Hide('AdDim');
            Hide('AdType');
        }
    }
</script>

</head>

<body>
<table width="800" border="0">
    <tr>
        <td valign="top" colspan="2">
            <div class="PageTitle">Online Work Order & Art Request Form</div>
        </td>
    </tr>
    <tr>
        <td valign="top">
            <fieldset>
                <legend>Work Order Information</legend>
                <table width="190">
                    <tr>
                        <td align="left" width="15%" nowrap><div class="Caption">Work Order ID:</div></td>
                        <td align="left" width="85%"><div>K<?php echo $WorkOrderID; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" width="15%" nowrap><div class="Caption">Work Order Name:</div></td>
                        <td align="left" width="85%"><div><?php echo $row2->WorkOrderName; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">Date Created:</div></td>
                        <td align="left"><div><?php echo $row2->OrderDate; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">Property:</div></td>
                        <td align="left"><div><?php echo $row2->Location; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">Status:</div></td>
                        <td align="left"><div><?php echo $row2->Status; ?></div></td>
                    </tr>
                </table>
            </fieldset>
            <div> </div>
            <fieldset>
                <legend>IO/AD Number</legend>
                <table width="390">
                    <tr>
                        <td align="left" nowrap><div class="Caption">IO/AD Number:</div></td>
                        <td align="left"><div><?php echo $row->IONumber; ?></div></td>
                    </tr>
                </table>
            </fieldset>
        </td>
        <td valign="top">
            <fieldset>
                <legend>Order Information</legend>
<?php
    $OrderType = split(",", $row->OrderType);
?>    
                <table width="390">
                    <tr>
                        <td align="left" nowrap><div class="Caption">Pick Up Order:</div></td>
                        <td align="left"><input type="checkbox" name="OrderType[]" value="Pick Up Order" <?php if (in_array("Pick Up Order", $OrderType)){echo "checked";} ?>></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">New Order:</div></td>
                        <td align="left"><input type="checkbox" name="OrderType[]" value="New Order" <?php if (in_array("New Order", $OrderType)){echo "checked";} ?>></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Change Order:</div></td>
                        <td align="left" nowrap><input type="checkbox" name="OrderType[]" value="Change Order" <?php if (in_array("Change Order", $OrderType)){echo "checked";} ?>></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Spec Ad:</div></td>
                        <td align="left" nowrap><input type="checkbox" name="OrderType[]" value="Spec Ad" <?php if (in_array("Spec Ad", $OrderType)){echo "checked";} ?>></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">Work Order #:</div></td>
                        <td align="left"><div><?php echo $row->WorkOrderNumber; ?></div></td>
                    </tr>
                </table>
            </fieldset>
        </td>
    </tr>
    <tr>
        <td valign="top">
            <fieldset>
                <legend>Account Information</legend>
                <table width="390">
                    <tr>
                        <td align="left" nowrap><div class="Caption">Advertiser:</div></td>
                        <td align="left"><div><?php echo $row->Advertiser; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Account Number:</div></td>
                        <td align="left"><div><?php echo $row->AccountNum; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Address:</div></td>
                        <td align="left"><div><?php echo $row->Address; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">City:</div></td>
                        <td align="left"><div><?php echo $row->City; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">State:</div></td>
                        <td align="left"><div><?php echo $row->State; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Zip:</div></td>
                        <td align="left"><div><?php echo $row->Zip; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Phone Number:</div></td>
                        <td align="left"><div><?php echo $row->Phone; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Fax Number:</div></td>
                        <td align="left"><div><?php echo $row->Fax; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Contact Name:</div></td>
                        <td align="left"><div><?php echo $row->ContactName; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Website URL:</div></td>
                        <td align="left"><div><?php echo $row->URL; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">Advertising Agency:</div></td>
                        <td align="left"><div><?php echo $row->AdvertisingAgency; ?></div></td>
                    </tr>
                </table>
            </fieldset>
            <div> </div>
            <fieldset>
                <legend>Ad Placement</legend>
                <table width="390">
                    <tr>
                        <td align="left" nowrap><div class="Caption">Click-through URL:</div></td>
                        <td align="left"><div><?php echo $row->ClickThru; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Number of Impressions:</div></td>
                        <td align="left"><div><?php echo $row->Impressions; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Banner/Tile Size:</div></td>
                        <td align="left"><div><?php echo $row->AdSize; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Start Date:</div></td>
                        <td align="left"><div><?php echo $row->StartDates; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">End Date:</div></td>
                        <td align="left"><div><?php echo $row->EndDates; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Total Revenue - CPM:</div></td>
                        <td align="left"><div><?php echo $row->CPM; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Flat Rate:</div></td>
                        <td align="left"><div><?php echo $row->FlatRate; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Include/Exclude Sites:</div></td>
                        <td align="left"><div><?php echo $row->IncludeSites; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Product / Package:</div></td>
                        <td align="left"><div><?php echo $row->Package; ?></div></td>
                    </tr>
                </table>
            </fieldset>
        </td>
        <td valign="top">
            <fieldset>
                <legend>MATRIX Information</legend>
                <table width="390">
                    <tr>
                        <td align="left"><div class="Caption">Is this Ad part of a MATRIX:</div></td>
                        <td align="left"><div><?php echo $row->Matrix; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">If Yes, select End Date:</div></td>
                        <td align="left"><div><?php echo $row->MatrixDates; ?></div></td>
                    </tr>
                </table>
            </fieldset>
            <div> </div>
            <fieldset>
                <legend>Salesperson</legend>
                <table width="390">
                    <tr>
                        <td align="left" nowrap><div class="Caption">Salesperson:</div></td>
                        <td align="left"><div><?php echo $row->Salesperson; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Sales #:</div></td>
                        <td align="left"><div><?php echo $row->SalespersonID; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Email:</div></td>
                        <td align="left"><div><?php echo $row->SalespersonEmail; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Telephone Ext.:</div></td>
                        <td align="left"><div><?php echo $row->SalespersonExt; ?></div></td>
                    </tr>
                </table>
            </fieldset>
            <div> </div>
            <fieldset>
                <legend>Order Properties</legend>
                <table width="390">
                    <tr>
                        <td align="left"><div class="Caption">Name/Campaign:</div></td>
                        <td align="left"><div><?php echo $row->NameCampaign; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">Special Instructions:</div></td>
                        <td align="left"><div><?php echo $row->SpecialInstructions; ?></div></td>
                    </tr>
                </table>
            </fieldset>
            <div> </div>
            <fieldset>
                <legend>Contact for Ad Placement Materials</legend>
                <table width="390">
                    <tr>
                        <td align="left"><div class="Caption">Name:</div></td>
                        <td align="left"><div><?php echo $row->AdContactName; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">Telephone #:</div></td>
                        <td align="left"><div><?php echo $row->AdContactPhone; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">Email Address:</div></td>
                        <td align="left"><div><?php echo $row->AdContactEmail; ?></div></td>
                    </tr>
                </table>
            </fieldset>
        </td>
    </tr>
    <tr>
        <td colspan="3" valign="top">
            <fieldset>
                <table>
                    <tr>
                        <td align="left"><div class="Caption">Create New Artwork or Pick Up Print Ad:</div></td>
                        <td align="left"><div><?php echo $row->Artwork; ?></div></td>
                    </tr>
                </table>
            </fieldset>        
        </td>
    </tr>
    <tr>
        <td valign="top">
            <fieldset  id="AdInfo" style="visibility:hidden;display:none;position:relative;top:0;left:0;">
                <legend>Ad Information</legend>
                <table width="390">
                    <tr>
                        <td align="left" nowrap><div class="Caption">Print Pub Date:</div></td>
                        <td align="left"><div><?php echo $row->PrintDates; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">Electronic Ad:</div><div>(Camera ready)</div></td>
                        <td align="left"><div><?php echo $row->ElectronicAd; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">Send Proof to Email address(s):</div></td>
                        <td align="left"><div><?php echo $row->EmailProof; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Date Proof Needed:</div></td>
                        <td align="left"><div><?php echo $row->ProofDates; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Art Instructions:</div></td>
                        <td align="left"><div><?php echo $row->ArtInstructions; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">What is the focus of this ad:</div><div class="Limit">(Brand, price, limited time offer, etc)</div></td>
                        <td align="left"><div><?php echo $row->Focus; ?></div></td>
                    </tr>
                </table>
            </fieldset>
            
            
            
        </td>
        <td valign="top">
            <fieldset id="AdDim" style="visibility:hidden;display:none;position:relative;top:0;left:0;">
                <legend>Ad Dimensions</legend>
<?php
    $BannerSize = split(",", $row->BannerSize);
?>    
                <table width="390">
                    <tr>
                        <td align="left" nowrap><div class="Caption">728x90 - Leaderboard:</div></td>
                        <td align="left"><input type="checkbox" name="BannerSize[]" value="728x90" <?php if (in_array("728x90", $BannerSize)){echo "checked";} ?>><span class="Limit">(Banner)</span></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">160x600 - Skyscraper:</div></td>
                        <td align="left"><input type="checkbox" name="BannerSize[]" value="160x600" <?php if (in_array("160x600", $BannerSize)){echo "checked";} ?>><span class="Limit">(Tower)</span></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">300x250 - Square:</div></td>
                        <td align="left"><input type="checkbox" name="BannerSize[]" value="300x250" <?php if (in_array("300x250", $BannerSize)){echo "checked";} ?>><span class="Limit">(Posterboard)</span></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">88x31 and 300x250:</div></td>
                        <td align="left"><input type="checkbox" name="BannerSize[]" value="88x31-300x250" <?php if (in_array("88x31-300x250", $BannerSize)){echo "checked";} ?>><span class="Limit">(Search sponsor ONLY)</span></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">120x240:</div></td>
                        <td align="left"><input type="checkbox" name="BannerSize[]" value="120x240" <?php if (in_array("120x240", $BannerSize)){echo "checked";} ?>><span class="Limit">(Mini-tower)</span></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">940x30 - Pencil Ad:</div></td>
                        <td align="left"><input type="checkbox" name="BannerSize[]" value="940x30" <?php if (in_array("940x30", $BannerSize)){echo "checked";} ?>></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Other:</div></td>
                        <td align="left"><div class="Caption">
                            <input type="checkbox" name="BannerSize[]" value="Other" <?php if (in_array("Other", $BannerSize)){echo "checked";} ?>>
                             <input type="text" name="BannerSizeOther" size="20" value="<?php echo $row->BannerSizeOther; ?>"><span class="Limit">(specify pixel size)</span>
                        </div></td>
                    </tr>
                </table>
            </fieldset>
            <div> </div>
            <fieldset id="AdType" style="visibility:hidden;display:none;position:relative;top:0;left:0;">
                <legend>File Format</legend>
<?php
    $BannerType = split(",", $row->BannerType);
?>    
                <table width="390">
                    <tr>
                        <td align="left" nowrap><div class="Caption">GIF:</div></td>
                        <td align="left"><input type="checkbox" name="BannerType[]" value="GIF" <?php if (in_array("GIF", $BannerType)){echo "checked";} ?>><span class="Limit">(Max size 35k)</span></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">JPG:</div></td>
                        <td align="left"><input type="checkbox" name="BannerType[]" value="JPG" <?php if (in_array("JPG", $BannerType)){echo "checked";} ?>><span class="Limit">(Max size 35k)</span></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">FLA/SWF:</div></td>
                        <td align="left"><input type="checkbox" name="BannerType[]" value="FLA/SWF" <?php if (in_array("FLA/SWF", $BannerType)){echo "checked";} ?>><span class="Limit">(Max size 35k on SWF)</span></td>
                    </tr>
                    <tr>
                        <td align="left" nowrap><div class="Caption">Other:</div></td>
                        <td align="left"><div class="Caption">
                            <input type="checkbox" name="BannerType[]" value="Other" <?php if (in_array("Other", $BannerType)){echo "checked";} ?>>
                             <input type="text" name="BannerTypeOther" size="25" value="<?php echo $row->BannerTypeOther; ?>"><span class="Limit">(specify file type)</span>
                        </div></td>
                    </tr>
                </table>
            </fieldset>
        </td>
    </tr>
    <tr>
        <td colspan="2" valign="top">
            <fieldset>
                <legend>Additional Images/Photos</legend>
                <table width="95%">
                    <tr>
                        <td align="left" width="15%"><div class="Caption">Image 1:</div></td>
                        <td align="left" width="35%"><div><a href="<?php echo $row->ExtraImage1; ?>" target="_blank"><?php echo basename($row->ExtraImage1); ?></a></div></td>
                        <td align="left" width="15%" nowrap><div class="Caption">Description of Image:</div></td>
                        <td align="left" width="35%"><div><?php echo $row->ExtraImage1Desc; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">Image 2:</div></td>
                        <td align="left"><div><a href="<?php echo $row->ExtraImage2; ?>" target="_blank"><?php echo basename($row->ExtraImage2); ?></a></div></td>
                        <td align="left"><div class="Caption">Description of Image:</div></td>
                        <td align="left"><div><?php echo $row->ExtraImage2Desc; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">Image 3:</div></td>
                        <td align="left"><div><a href="<?php echo $row->ExtraImage3; ?>" target="_blank"><?php echo basename($row->ExtraImage3); ?></a></div></td>
                        <td align="left"><div class="Caption">Description of Image:</div></td>
                        <td align="left"><div><?php echo $row->ExtraImage3Desc; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">Image 4:</div></td>
                        <td align="left"><div><a href="<?php echo $row->ExtraImage4; ?>" target="_blank"><?php echo basename($row->ExtraImage4); ?></a></div></td>
                        <td align="left"><div class="Caption">Description of Image:</div></td>
                        <td align="left"><div><?php echo $row->ExtraImage4Desc; ?></div></td>
                    </tr>
                    <tr>
                        <td align="left"><div class="Caption">Image 5:</div></td>
                        <td align="left"><div><a href="<?php echo $row->ExtraImage5; ?>" target="_blank"><?php echo basename($row->ExtraImage5); ?></a></div></td>
                        <td align="left"><div class="Caption">Description of Image:</div></td>
                        <td align="left"><div><?php echo $row->ExtraImage5Desc; ?></div></td>
                    </tr>
                </table>
            </fieldset>
        </td>
    </tr>
<?php
    $query = "SELECT ChangeStatus FROM admin WHERE AdminID='$AdminID'";
    $result3 = mysql_query ($query);
    $row3 = mysql_fetch_object ($result3);
    if ($row3->ChangeStatus == "YES") {
?>    
    <tr>
        <td colspan="2">
            <table align="center">
                <tr>
                    <td><a href="ChangeStatus.php?WorkOrderID=<?php echo $WorkOrderID; ?>&AdminID=<?php Echo $AdminID; ?>&ReturnPage=<?php echo $ReturnPage; ?>&Status=Pending"><img src="images/button_status_pending.gif" width="108" height="14" border="0"></a></td>
                    <td><a href="ChangeStatus.php?WorkOrderID=<?php echo $WorkOrderID; ?>&AdminID=<?php Echo $AdminID; ?>&ReturnPage=<?php echo $ReturnPage; ?>&Status=WaitingOnArt"><img src="images/button_status_waitart.gif" width="140" height="14" border="0"></a></td>
                    <td><a href="ChangeStatus.php?WorkOrderID=<?php echo $WorkOrderID; ?>&AdminID=<?php Echo $AdminID; ?>&ReturnPage=<?php echo $ReturnPage; ?>&Status=ArtworkCompleted"><img src="images/button_status_artcomplete.gif" width="168" height="14" border="0"></a></td>
                    <td><a href="ChangeStatus.php?WorkOrderID=<?php echo $WorkOrderID; ?>&AdminID=<?php Echo $AdminID; ?>&ReturnPage=<?php echo $ReturnPage; ?>&Status=OrderCompleted"><img src="images/button_status_ordercomplete.gif" width="158" height="14" border="0"></a></td>
                </tr>
            </table>
        </td>
    </tr>
<?php
    }
?>    
</table>
<script language="javascript">
    ArtworkChange('<?php echo $row->Artwork; ?>');
</script>
</body>
</html>

What do you mean it stopped working? 

Is there a blank screen, is something happening that isn't supposed to happen...? 

Do you even have error reporting turned on?

 

ini_set ("display_errors", "1");
error_reporting(E_ALL);

When you do a "view source" in your browser of the blank page, what do you get?

 

What is in dbconn_open.php?  xxxxxxx out any sensitive information but don't change any of the syntax or puncuation.

 

Have you checked your web server error log file?

One thing that will help you trouble shoot is that things don't just stop working for no reason, something had to have changed somewhere.

 

Find out what changed (on the server or in the script) and it will help you figure out the problem.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.