查看文件: SelectproductApi.php
大小: 989 字节
类型: application/octet-stream
<?php require_once('../Connections/BE2.php'); $mem_auto=0; if(isset($_POST['mem_auto'])){$mem_auto=$_POST['mem_auto']; } mysql_select_db($database_BE2, $BE2); // address_id county district street mysql_select_db($database_BE2, $BE2); $qr2 =sprintf("SELECT * FROM product_data WHERE mem_auto='%s' ",$mem_auto); $Rt2 = mysql_query($qr2, $BE2) or die(mysql_error()); $row_Rt2 = mysql_fetch_assoc($Rt2); $totalRows_Rt2 = mysql_num_rows($Rt2); $imagepath = "/admin/upload2_image/".sprintf("%07d",$row_Rt2['company_num']).'/'.$row_Rt2['meta_img'].'.'.$row_Rt2['p_tag']; /* $response = array(); $response[] = "/admin/upload2_image/".sprintf("%07d",$row_Rt2['company_num']).'/'; $response[] = $row_Rt2['meta_img']; $response[] = $row_Rt2['p_tag']; echo json_encode($response); */ $data=array(); $data['id']=$row_Rt2['mem_auto']; $data['img']=$row_Rt2['meta_img']; $data['imgext']=$row_Rt2['p_tag']; echo json_encode($data); mysql_free_result($Rt2); ?>
保存
取消
返回文件列表