本文整理汇总了PHP中complete_procedure函数的典型用法代码示例。如果您正苦于以下问题:PHP complete_procedure函数的具体用法?PHP complete_procedure怎么用?PHP complete_procedure使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了complete_procedure函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sendCommentEmail
function sendCommentEmail($dbc, $Message)
{
$r = mysqli_query($dbc, "Call spGetActiveEditors();");
complete_procedure($dbc);
$To = '';
while ($row = mysqli_fetch_array($r, MYSQLI_ASSOC)) {
$To = $To . $row["EmailAddress"] . ',';
}
$To = rtrim($To, ",");
//Remove the last comma from the string
$Subject = 'Comment from Journal of Critial Incidents website';
$Header = "From: NoReply@sfcrjci.org\r\nContent-Type: text/html;charset=iso-8859-1\r\nMIME-Version: 1.0\r\n";
mail($To, $Subject, $Message, $Header);
}
示例2: while
while($row = $years->fetch_assoc()) {
echo '<option value="'.$row["FileMetaDataID"].'"'.($row["Year"] == $years ? ' selected' : '').'>'.$row["Year"].'</option>';
}
*/
// }
?>
<div class="row flush">
<div class="side_nav col s2 guest_light">
<div class="guest">
<h3 class="title">Download Published Journals By Year</h3>
</div>
<ul>
<?php
// Storing value to variable in same line as query taken from jeff's register page
$years = mysqli_query($dbc, "Call spGetPublicationsYearsList();");
complete_procedure($dbc);
//Dispay the list of states
// echo '<option value="$years">Download a published journal</option>';
// This was taken from Jeff's Register page drop down boxes
while ($row = $years->fetch_assoc()) {
$ID = $row["FileMetaDataID"];
echo '<li class=""><a target=\\"_blank\\" href=\\"download.php?fid=' . $ID . '"><option value="' . $row["FileMetaDataID"] . '">' . $row["Year"] . '</a></li></option>';
}
?>
</ul>
<div class="guest">
<h3 class="title">Search</h3>
</div>
<form class="archivesearch"action="" method="post">
<input placeholder="Case Title" class="regular" type="text" name="case_title" size="15" maxlength="40" value="<?php