查看文件: CkmemberApi.php
大小: 637 字节
类型: application/octet-stream
<?php require_once('../Connections/BE2.php'); $memcode=isset($_POST['memcode'])? $_POST['memcode'] :"0"; mysql_select_db($database_BE2, $BE2); // address_id county district street $query_Rt2 = sprintf("SELECT * FROM member WHERE scode='%s'",$memcode); $Rt2 = mysql_query($query_Rt2, $BE2) or die(mysql_error()); $row_Rt2 = mysql_fetch_assoc($Rt2); $totalRows_Rt2 = mysql_num_rows($Rt2); $result = array(); if( $totalRows_Rt2==0){ $result['err'] = 0; $result['id'] = 1; }else{ $result['err'] = 1; $result['id'] = $row_Rt2['mem_auto']; } echo json_encode($result); mysql_free_result($Rt2); ?>
保存
取消
返回文件列表