本文整理汇总了PHP中tep_db_close函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_db_close函数的具体用法?PHP tep_db_close怎么用?PHP tep_db_close使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tep_db_close函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($query)
{
include_once 'database.php';
include_once 'functions.php';
include_once '../includes/configure.php';
include_once '../includes/database_tables.php';
include_once '../includes/functions/database.php';
tep_db_connect() or die('Unable to connect to database');
$this->query = $query;
$this->object_list = executeSQLtoArray($this->query);
tep_db_close();
}
示例2: sendMessageToAdmin
function sendMessageToAdmin($message, $is_error_message, $exit = false)
{
global $SP_NECKERMANN_CATUPLOAD_ADD_SUPERVISORS;
$subject = 'NM.DE CAT UPLOAD ' . ($is_error_message ? 'ERROR' : 'SUCCESS');
$color = $is_error_message ? 'red' : 'green';
$message = '<div style="color:' . $color . ';">Messages on ' . date("d.m.Y H:i:s") . ' : <br/><br/>' . $message . '</div>';
//SEND EMAIL TO NM.DE CAT UPLOAD DEBUGGER
tep_mail(EMAIL_NAME_DEBUGR, EMAIL_ADDRESS_DEBUGR, $subject, $message, FROM_EMAIL_NAME, FROM_EMAIL_ADDRESS, false);
//SEND EMAIL TO NM.DE CAT UPLOAD ADDITIONAL SUPERVISORS
foreach ($SP_NECKERMANN_CATUPLOAD_ADD_SUPERVISORS as $supervisor_name => $supervisor_email) {
tep_mail($supervisor_name, $supervisor_email, $subject, $message, FROM_EMAIL_NAME, FROM_EMAIL_ADDRESS, false);
}
echo $message;
if ($exit) {
tep_db_close();
exit;
}
}
示例3: tep_db_fetch_array
$check_result = tep_db_fetch_array($check_query);
$catalog_id = $check_result['jng_sp_catalog_id'];
$active_status = $check_result['active_status'];
} else {
$copy_counter++;
$cat_ids = $class_jc->addProduct($new_sp_id, $c['products_id']);
$catalog_id = $cat_ids[0];
$active_status = '0';
}
$sda = array();
if(array_key_exists($c['navigation'], $navtrans)) {
if($active_status=='0') {
$class_jc->activateProduct($catalog_id);
$active_counter++;
}
$sda['navigation'] = $navtrans[$c['navigation']];
}
$sda['status_price'] = '1';
//$sda['navigation3'] = 'female';
$class_jc->updateField($catalog_id, $sda);
$update_counter++;
}
echo "$update_counter Products is updated.";
echo '<br />';
echo "$copy_counter Products is copied.";
echo '<br />';
echo "$active_counter Products is activated.";
*/
tep_db_close();
示例4: tep_exit
function tep_exit()
{
tep_session_close();
tep_db_close();
die;
}
示例5: createLinkToProduct
/**
* Links a product with a base category variation
*/
function createLinkToProduct($option, $value, $productId)
{
tep_db_connect() or die('Unable to connect to database');
$sql_array = array('options_id' => $option, 'options_values_id' => $value, 'products_id' => $productId);
tep_db_perform(TABLE_PRODUCTS_ATTRIBUTES, $sql_array);
tep_db_close();
}
示例6: tep_db_close
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="no">7</td>
<td>Quality</td>
<td>Quality of all elements</td>
<td class="no">100% Good</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="no">8</td>
<td>Quality</td>
<td>Quality of all beading/closing</td>
<td class="no">100% Good</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</div>
<div> </div>
<? } ?>
</div>
</body>
</html>
<?php tep_db_close(); ?>