Welcome Guest, Not a member yet? Register   Sign In
help with table + pagination
#2

[eluser]Naveen Reddy[/eluser]
Hey,

1. If you want to display 30 words of message in the table, then use substr() of php. Its quite easy.

2. Your id is primary key so, you have to make another controller to show the full message. Lets say, you have one controller called fullmsg.php,and it has an action method called show($id) then the logic is like this...

Code:
<a href='&lt;?php print base_url(); ?&gt;fullmsg/show/id'>your 30 words </a> . Thats it...

Note: that id in href is a numeric id.


Messages In This Thread
help with table + pagination - by El Forum - 09-22-2010, 10:04 AM
help with table + pagination - by El Forum - 09-22-2010, 10:45 PM
help with table + pagination - by El Forum - 09-22-2010, 11:03 PM
help with table + pagination - by El Forum - 09-22-2010, 11:30 PM
help with table + pagination - by El Forum - 07-19-2011, 02:12 AM
help with table + pagination - by El Forum - 07-19-2011, 06:26 AM
help with table + pagination - by El Forum - 07-19-2011, 07:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB