查看文件: memberfound.php
大小: 1016 字节
类型: application/octet-stream
<?php require_once('../Connections/BEB2.php'); ?> <? $bdid=isset($_POST['bdid'])?$_POST['bdid']:'-1'; mysql_select_db($database_BEB2, $BEB2); // address_id county district street $query_Rt2 = sprintf("SELECT * FROM dat2 where bdid='%s' order by bid desc limit 1",$bdid); $Rt2 = mysql_query($query_Rt2, $BEB2) or die(mysql_error()); $row_Rt2 = mysql_fetch_assoc($Rt2); $totalRows_Rt2 = mysql_num_rows($Rt2); $rows = array(); if($totalRows_Rt2>0){ $rows['msg']='OK'; $rows['bname']=$row_Rt2['bname']; $rows['bsex']=$row_Rt2['bsex']; $rows['btel']=$row_Rt2['btel']; $rows['byy']=$row_Rt2['byy']; $rows['bmm']=$row_Rt2['bmm']; $rows['bdd']=$row_Rt2['bdd']; $rows['city']=$row_Rt2['bcity']; $rows['district']=$row_Rt2['bdistrict']; $rows['street']=$row_Rt2['bstreet']; $rows['bemail']=$row_Rt2['bemail']; }else{ $rows['msg']='Fail'; } echo json_encode($rows); ?> <? mysql_free_result($Rt2); ?>
保存
取消
返回文件列表