1 Star 0 Fork 1

yihoc/WEBWMS

forked from gujiejing/WEBWMS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test1.php 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
gujiejing 提交于 2018-05-23 23:17 . bbbbbbbbbbe
<?php
$abc = 'aaaa'.
'bbbb'.
'ccccc';
echo $abc;
/* $a= time();
$a = $a."abcefdsfadfadsfadfadf";
echo $a;
echo '<br/>';
$arr = array('a'=>1,'b'=>2,'c'=>3,'d'=>4);
echo json_encode($arr);
echo '<br/>';
$arr2 = array('aa','bb','cc','dd','ee','ff');
echo json_encode($arr2);
echo '<br/>';
$obj->body = "我窝窝窝窝我";
$obj->body2 = "你你及你妮妮妮";
$obj->id =21;
$obj->approved = true;
$obj->favorite_count = 1;
$obj->status = null;
*/
//echo json_encode($obj);
require_once('connDB.php');
echo 123;
$sql = "SELECT `custid`,`custcn` FROM `cust` ORDER BY `id` DESC";
$result = mysql_query($sql,$dbc);
$arr1=Array();
while($row_Rec = mysql_fetch_assoc($result)){
$arr2=array("id"=>$row_Rec['custid'],
"text"=>$row_Rec['custcn']);
array_push($arr1,$arr2);
}
echo json_encode($arr1);
?>
<html>
<head>
<title>TEST!</title>
</head>
<script type="text/javascript">
/*document.write("abc1");
//debug("aaaaa");
document.write("<br/>");
var cars = new Array();
cars[0]="toyota";
cars[1]="honda";
cars[2]="nissan";
cars[3]="mazda";
document.write(cars);
document.write("<br/>");
var cars2 = [["1","aaa"],["2","aaa1"],["3","aaa2"]];
document.write(cars2);
document.write("<br/>");
document.write(cars2[1][1]);
var aaa = <?php echo json_encode($obj);?>
document.write(aaa.body);
document.write("<br/>");
document.write(aaa.id);
document.write("<br/>");
document.write(aaa.body2);*/
</script>
<body>
<br/>
Test1
</body>
<script type="text/javascript">
</script>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/yihoc/WEBWMS.git
git@gitee.com:yihoc/WEBWMS.git
yihoc
WEBWMS
WEBWMS
master

搜索帮助