![[18禁]生TELエッチ](http://www.ucchari.com/bn/est01.jpg)
<?php
//必要なファイルの読み込み
require('configure.php');
require('database.php');
//DB接続
tep_db_connect() or die('Unable to connect to database server!');
//SQL文
$sql = "update products" .
" set products_name = 'ほげほげEX', products_price = '2700'" .
" where products_id = '245'";
//UPDATE実行
tep_db_query($sql);
//DB切断
tep_db_close();
?>
<?phpSQL文で変数やPOSTデータ等を使う場合のtep_db_input関数やtep_db_prepare_input関数についてはこちらをご覧下さい。⇒「PHP osCommerceの機能を使いMySQLを操作する INSERT文」
//必要なファイルの読み込み
require('configure.php');
require('database.php');
//DB接続
tep_db_connect() or die('Unable to connect to database server!');
//SQL文
$sql = "delete from products where products_id = '245'";
//DELETE実行
tep_db_query($sql);
//DB切断
tep_db_close();
?>