![]() |
|
#1
|
|||
|
|||
link problem [1][2]-----hi,
form below piece of code i try to get the next page when 3 rows shown in table ,once user enter 4th row he will get page [1][2][3] ...and so on same liek this forum so i jsut counted the rows from table t_emp where user [php] $Qpages=mysql_fetch_row(mysql_query("SELECT COUNT(*) FROM t_emp WHERE user = $session->sys_pk")); $pages=ceil($Qpages[0]); $offset=($HTTP_GET_VARS["page"]*3)-3; $result = mysql_query(" SELECT bah balh from t_emp order by id DESC LIMIT $offset,3"); then here is some problem <? for ($i=3; $i<=$pages; $i++) echo "<left><a href=test.phtml?page=$i> [$i] </a> ";?> as now what happening once user submit the form it shows [1] [2] [3] and so on if anybody figure it out be appreciated and anything not able to understand plz let me know regards |
Recent GIDBlog
Toyota - 2008 July Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| unwanted scrollbar problem | kelly001 | Web Design Forum | 3 | 24-Oct-2003 10:44 |
| php link | dbztoolkit | MySQL / PHP Forum | 4 | 23-Aug-2003 09:40 |
| select problem | zuzupus | MySQL / PHP Forum | 0 | 15-Aug-2003 07:25 |
| client side problem | zuzupus | MySQL / PHP Forum | 2 | 22-Jul-2003 06:47 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The