$form = <<<form //表單HTML語法(這裡面要秀出$或"或'都不用加\) form;
`status` varchar(255) NOT NULL,
select * from eznews order by status='置頂' desc , a.post_time desc";
`counter` smallint(5) unsigned NOT NULL,
update eznews set counter=counter+1 where sn='$sn'
<span class='badge badge-info'>{$news['counter']}</span>
<?php $counter=isset($_REQUEST['counter'])?intval($_REQUEST['counter']):0; header("Content-type: image/png"); $im = @imagecreatetruecolor(28, 18) or die("無法建立圖片!"); $text_color = imagecolorallocate($im, 255, 255, 255); imagestring($im, 2, 5, 2, $counter, $text_color); imagepng($im); imagedestroy($im); ?>
<img src=”counter.php?counter=12345”>
select a.* , b.* , c.* from `資料表1` as a join `資料表2` as b on a.`索引欄位`= b.`索引欄位` join `資料表3` as c on b.`索引欄位`= c.`索引欄位` where a.欄位='值' and ….
select a.*,b.* from eznews as a left join eznews_cate as b on a.cate_sn=b.cate_sn order by a.post_time desc
select a.* , b.* from `資料表1` as a , `資料表2` as b where a.`索引欄位`= b.`索引欄位`
select a.* , b.* from `資料表1` as a natural join `資料表2` as b