摘要: <?php$str = "abc:def:hij";$arr = explode(':',$str);echo '<pre>';echo '成功<br>';var_dump($arr);echo '</pre>';$str = "abcdefhij";$arr = explode(':',$str);echo '<pre>';echo 'no成功<br>';var_dump($a 阅读全文
posted @ 2012-02-28 12:06 myD 阅读(2910) 评论(0) 推荐(1) 编辑
摘要: <?php$link = new mysqli('localhost', 'root','123','test');$sql = 'select uName from userInfo';$a = $link->query($sql);echo '<pre>';echo '有结果集<br>';var_dump($a);echo '</pre>';$sql = "insert into userInfo valu 阅读全文
posted @ 2012-02-28 11:50 myD 阅读(3337) 评论(1) 推荐(1) 编辑
摘要: Anonymous (24-Apr-2010 05:43)The mysqli_close() function and object method only remove the ability to use the mysql object again in the script, essentially on the surface only nulling out all object parameters.过程化的mysqli_close()函数和面向对象的方法调用只是不让用户在此后的脚本中再使用mysql对象,基本上只在表面上归零所有对象参数At least with PHP5.3 阅读全文
posted @ 2012-02-28 08:38 myD 阅读(1822) 评论(0) 推荐(0) 编辑