|
@@ -23,10 +23,9 @@ class DiAn extends BaseController
|
|
{
|
|
{
|
|
$xml = $data;
|
|
$xml = $data;
|
|
$obj = simplexml_load_string($xml,"SimpleXMLElement", LIBXML_NOCDATA);
|
|
$obj = simplexml_load_string($xml,"SimpleXMLElement", LIBXML_NOCDATA);
|
|
- $conn = mysqli_connect('localhost','root','');
|
|
|
|
- $a = mysqli_select_db($conn,'tijianzhongxin');
|
|
|
|
|
|
+ $conn = mysqli_connect('127.0.0.1','root','123456');
|
|
|
|
+ $a = mysqli_select_db($conn,'pacsonline');
|
|
$sql = "select * from dianApiInfo where Barcode='$obj'";
|
|
$sql = "select * from dianApiInfo where Barcode='$obj'";
|
|
- return $sql;
|
|
|
|
$result = mysqli_query($conn, $sql);
|
|
$result = mysqli_query($conn, $sql);
|
|
$info = mysqli_fetch_row($result);
|
|
$info = mysqli_fetch_row($result);
|
|
if(!empty($info))
|
|
if(!empty($info))
|