当前位置: 首页>>代码示例>>PHP>>正文


PHP tep_db_close函数代码示例

本文整理汇总了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();
 }
开发者ID:bhuvanaurora,项目名称:erp5,代码行数:12,代码来源:object_query.php

示例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;
    }
}
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:18,代码来源:sp-1-catalog-uploader.php

示例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();
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:30,代码来源:temp-copy-neckermann-products-to-nmat.php

示例4: tep_exit

function tep_exit()
{
    tep_session_close();
    tep_db_close();
    die;
}
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:6,代码来源:general_old.php

示例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();
}
开发者ID:bhuvanaurora,项目名称:erp5,代码行数:10,代码来源:functions.php

示例6: tep_db_close

					<td>&nbsp;</td>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td class="no">7</td>
					<td>Quality</td>
					<td>Quality of all elements</td>
					<td class="no">100% Good</td>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
					<td>&nbsp;</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>&nbsp;</td>
					<td>&nbsp;</td>
					<td>&nbsp;</td>
				</tr>
			</table>
		</div>
		<div>&nbsp;</div>
<? } ?>
	</div>
</body>
</html>
<?php tep_db_close(); ?>
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:30,代码来源:production_sample.php


注:本文中的tep_db_close函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。