believeinsharing Posted July 3, 2012 Share Posted July 3, 2012 is their any way to display part of article with read more option... Quote Link to comment https://forums.phpfreaks.com/topic/265160-read-more-option/ Share on other sites More sharing options...
anevins Posted July 3, 2012 Share Posted July 3, 2012 Yes... Could you post some code? Quote Link to comment https://forums.phpfreaks.com/topic/265160-read-more-option/#findComment-1358834 Share on other sites More sharing options...
maxudaskin Posted July 3, 2012 Share Posted July 3, 2012 There are multiple ways to do this. Link to another page with full article Load entire article, truncate the data to a small blurb, and have the rest of the data in a seperate, non-visible div. Use javascript to make it visible when needed. Get truncated data, use AJAX to retrieve full data when wanted. Quote Link to comment https://forums.phpfreaks.com/topic/265160-read-more-option/#findComment-1358975 Share on other sites More sharing options...
believeinsharing Posted July 3, 2012 Author Share Posted July 3, 2012 thx for reply... I dont have any code right now, what i wanted is If some one add some blog with blog title n blog info. I want to display some text of updated blog on home page with "read more" link Quote Link to comment https://forums.phpfreaks.com/topic/265160-read-more-option/#findComment-1358980 Share on other sites More sharing options...
codefossa Posted July 3, 2012 Share Posted July 3, 2012 thanks for reply... I dont have any code right now, what i wanted is If some one add some blog with blog title n blog info. I want to display some text of updated blog on home page with "read more" link In that case, you would just query the data from your database and echo it out like anything else. Check out the function mysql_query, and using the returned data. That's assuming you're using mysql of course, else use the alternative. Quote Link to comment https://forums.phpfreaks.com/topic/265160-read-more-option/#findComment-1359000 Share on other sites More sharing options...
mikosiko Posted July 3, 2012 Share Posted July 3, 2012 from the PHP manual: Suggested alternatives Use of this extension is discouraged. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include: mysqli_query() PDO::query() complementary reads: http://www.php.net/manual/en/mysqlinfo.api.choosing.php and http://www.php.net/manual/en/faq.databases.php#faq.databases.mysql.deprecated Quote Link to comment https://forums.phpfreaks.com/topic/265160-read-more-option/#findComment-1359002 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.