How to limit the number of characters returned from a recordset field? PHP
I can display the full title like this:
<?php echo($rsNEWS->getColumnVal("BWnewstitle")); ?>
...but how do I limit this to only, say, the first 50 characters?
Thank you.
NJ
I can display the full title like this:
<?php echo($rsNEWS->getColumnVal("BWnewstitle")); ?>
...but how do I limit this to only, say, the first 50 characters?
Thank you.
NJ
<?php echo(substr($rsNEWS->getColumnVal("BWnewstitle"),0,50)); ?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.