关于使用微擎开发微信时调用PHP文件失败 5
求大神帮忙看以下语句哪里不符合微擎的要求,多谢了,很急!<?phpinclude'conn.php';MYSQL_select_db("lkdwy");header("C...
求大神帮忙看以下语句哪里不符合微擎的要求,多谢了,很急!
<?php
include 'conn.php';
MYSQL_select_db("lkdwy");
header("Content-type:text/html;charset=GB2312");
$panding=pdo_fieldexists('tb_user',$this->message['from']);
if ($panding)
{
$result=mysql_query("select * from tb_user where id=".$this->message['from'],$conn);
while ($myrow=mysql_fetch_row($result))
{
$ans="$myrow[2]."您好"."您的学号".$myrow[1]."您的号码".$myrow[3]."您的地址".$myrow[4].$myrow[5]";
return $this->respText($ans);
}
}
else
{
$dth=array();
$dth[]=array('title'=>'点击这里注册','url'=> 'http://118.50.38.134/wx/source/modules/userapi/api/user.html');
return $this->respNews($dth);
}
?> 展开
<?php
include 'conn.php';
MYSQL_select_db("lkdwy");
header("Content-type:text/html;charset=GB2312");
$panding=pdo_fieldexists('tb_user',$this->message['from']);
if ($panding)
{
$result=mysql_query("select * from tb_user where id=".$this->message['from'],$conn);
while ($myrow=mysql_fetch_row($result))
{
$ans="$myrow[2]."您好"."您的学号".$myrow[1]."您的号码".$myrow[3]."您的地址".$myrow[4].$myrow[5]";
return $this->respText($ans);
}
}
else
{
$dth=array();
$dth[]=array('title'=>'点击这里注册','url'=> 'http://118.50.38.134/wx/source/modules/userapi/api/user.html');
return $this->respNews($dth);
}
?> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询