J
|
Jane 9/9/2008 |
Your code looks correct. |
F
|
fawad112 author 9/11/2008 |
Hi thanks Jane. It is working now but i am having problem in displaying all the row of the table. Please let me out with this. What i want to do is to display the rows below the menu page. Check the code below i must be missing something it is just displaying single row. |
J
|
Jane 9/11/2008 |
Hi, $ref = ""; $deadline = ""; $total =""; $str = "select * from accountdetails where writerid='$writerid'"; $rs = db_query($str,$conn); if (mysql_num_rows($rs) > 0) { while ($data = db_fetch_array($rs)) { $ref.=$data["ref"]." "; $deadline.=$data["deadline"]." "; $total.=$data["writerstot"]." "; } $smarty->assign('ref',$ref); $smarty->assign('deadline', $deadline); $smarty->assign('total',$total); } |
F
|
fawad112 author 9/11/2008 |
Hey thanks jane. i am getting all rows now <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=32959&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> but there is 1 another problem.. On the display page it is showing all the information from the table in a single row <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=32959&image=2&table=forumreplies' class='bbc_emoticon' alt=':(' /> ... how can i display them in single rows |
J
|
Jane 9/12/2008 |
Hi, ... while ($data = db_fetch_array($rs)) { $ref.=$data["ref"]." "; $deadline.=$data["deadline"]." "; $total.=$data["writerstot"]." "; } ... |
F
|
fawad112 author 9/12/2008 |
Thanks Jane you rock <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=32980&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=32980&image=2&table=forumreplies' class='bbc_emoticon' alt='B)' /> |