コード例 #1
0
function deleteEstimate($handler, $estimateId)
{
    $estimateInfo = getBasicEstimateInfo($handler, $estimateId);
    $proposals = mysql_query("SELECT * FROM fakeitem WHERE fakeprojectId = '{$estimateId}'", $handler);
    while ($proposal = mysql_fetch_assoc($proposals)) {
        deleteProposal($handler, $proposal['fakeitemId']);
    }
    deleteAddress($handler, $estimateInfo['addressId']);
    mysql_query("DELETE FROM fakeproject WHERE fakeprojectId = '{$estimateId}'", $handler);
    return $estimateId;
}
コード例 #2
0
ファイル: deleteProposal.php プロジェクト: jscasca/mfrogs_mfi
<?php

include_once '../function_header.php';
include '../common_server_functions.php';
//print_r($_REQUEST);
$response = array();
$item = $_REQUEST['proposalId'];
if ($item == '') {
    die(wrapError(ERROR_CODE_FIVE, 'INTERNAL ERROR'));
}
//die(wrapError(-2,'Feature not ready'));
$itemId = deleteProposal($conexion, $item);
mysql_close($conexion);
echo wrapSubmitResponse(0, $item);