$sql = 'select * form `user`';
$res = mysql_query($sql);
$row = mysql_fetch_array($res);
我这代码不规范!!!!!
$res = mysql_query($sql);
$row = mysql_fetch_array($res);
我这代码不规范!!!!!
2016-11-14
Parse error: syntax error, unexpected '=' in /26/390/C4Ap/index.php on line 4
2016-11-14
$offset = ($page - 1) * $pagesize;
$sql = "select * from user limit $offset,$pagesize";
$sql = "select * from user limit $offset,$pagesize";
2016-11-14
编辑器真是难用的要命,输入中文,老出现这种现象!!!!!!
$link = mysql_connect($host,$user,$pass) or die('shujuku数据库lianjie数据库连接shibai');
$link = mysql_connect($host,$user,$pass) or die('shujuku数据库lianjie数据库连接shibai');
2016-11-14
之前不是很懂,看了这个,一次写成功
function geterr($num)
{
if($num < 2){
throw new Exception('数字必须大于等于2');
}
}
try{
geterr(1);
}catch(Exception $e){
echo $e->getMessage();
}
function geterr($num)
{
if($num < 2){
throw new Exception('数字必须大于等于2');
}
}
try{
geterr(1);
}catch(Exception $e){
echo $e->getMessage();
}
2016-11-14
$jb = fopen($filename,'rb');
while(!feof($jb)){
echo fread($jb,4096);
}
fclose($jb);
while(!feof($jb)){
echo fread($jb,4096);
}
fclose($jb);
2016-11-13
$newstr = preg_replace('/(\w+\.\w+)/','<em>$1</em>',$str);
print_r($newstr);
print_r($newstr);
2016-11-13
preg_match('/(\w+@\w+\.\w+$)/',$subject,$matches);
print_r($matches[1]);
print_r($matches[1]);
2016-11-13
public function __call($name,$args){
if($name == 'speedDown'){
$this->speed -= 10;
}
}
if($name == 'speedDown'){
$this->speed -= 10;
}
}
2016-11-13