php的json好简单 不指定

Else , 2009/09/07 13:54 , 代码片段,演示也有 , Comments(0) , Reads(786) , Via Original
其中et_list返回的是一个数组!
<?php
include(dirname(__FILE__).'/class/cuku.php');
$ck = new Cuku();  
$tl = $ck->tp($mbcon[template]);
include('public.php');


$linkl=$ck->et_list("select * from cuku_link where toin=1 ",0);

$json_string= json_encode($linkl);

echo $json_string;
?>
Add a comment

Nickname

Site URI

Email

Enable HTML Enable UBB Enable Emots Hidden Remember [Login] [Register]