/home/mjc1/public_html/manage/ajax.point_comp_sn_sync.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
include_once("./category/common.php");

$total_sql   =   " select * from member WHERE Mcode >  0  and Mid = '$memberid' ";
$result      =   mysql_query($total_sql) or die (mysql_error());
$row         =   mysql_fetch_array($result);

$mem_comp_sn $row['companyNum'];
$mem_comp_sn preg_replace("/[^0-9]/"""$mem_comp_sn);

include(
"./category/pointcommon.php");

$sql "update customers set custnum = '$mem_comp_sn' where id = '$memberid'";
$result      =   mysql_query($sql) or die (mysql_error());

echo 
"OK";

?>