<?php
$pagelen = 11;
$page = $_REQUEST['page'];
if (empty($page)) { $page=1; }
$r = mysql_query("select * from tb_members a
inner join tb_work_list b ON (a.member_id=b.member_id) where a.member_id='22' order by b.worklist_date desc LIMIT $goto , $pagelen");
<?php
$r = mysql_query("select * from tb_members a
inner join tb_work_list b ON (a.member_id=b.member_id) where a.member_id='11' order by b.worklist_date desc");
<? }?>
</tr>
<?php
$r = mysql_query("select * from tb_members a
inner join tb_work_list b ON (a.member_id=b.member_id) where a.member_id='20' order by b.worklist_date desc");
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
บรรทัดนี้ค่ะ
Quote:
$r = mysql_query("select * from tb_members a
inner join tb_work_list b ON (a.member_id=b.member_id) where a.member_id='22' order by b.worklist_date desc LIMIT $goto, $pagelen");
<?php
$pagelen = 11;
$page = $_REQUEST['page'];
if (empty($page)) { $page=1; }
$r = mysql_query("select * from tb_members a
inner join tb_work_list b ON (a.member_id=b.member_id) where a.member_id='22' order by b.worklist_date desc LIMIT $goto , $pagelen");
while($row=mysql_fetch_array($r)){
?>
ตัวที่สอง Code (PHP)
<?php
$r = mysql_query("select * from tb_members a
inner join tb_work_list b ON (a.member_id=b.member_id) where a.member_id='11' order by b.worklist_date desc");
while($row=mysql_fetch_array($r)){
?>