1. if (isset($_POST['remember'])) { $time = gmtime() + 3600 * 24 * 365; setcookie('ECSCP[admin_id]', $row['user_id'], $time); setcookie('ECSCP[admin_pass]', md5($row['password'] . $_CFG['hash_code']), $time); } cookie的使用,ECSCP[admin_id]名称
2. getone 一行一个字段 getrow 一行记录 getall 全部记录
4:如何取得某一列的值.该使用方法getCol() $res = $db ->getCol(); 5:如何取得指定的位置的几个数据.使用 selectLimit() 比如取得从第10行起的5条数据 $db -> selectLimit($sql , 10 ,5);
3. ecshop的ajax使用: 1){insert_scripts files="../js/transport.js"} 2)Ajax.call('index.php?is_ajax=1&act=license','', start_sendmail_Response, 'GET', 'JSON'); 参数分析:run : function (url, params, callback, transferMode, responseType, asyn, quiet)