|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by bernsoft1 in PHP Scripting Language
I have a table with names:
ID,Firstname,Lastname
1,Ben,Jack
2,James,Peter
3,Mary,Alice
4,Peyton,Sawyer
5,Lucas,Scott
I need to pull this information by a php script and have a response of MAX 20 character. i.e run a query then start from the top to construct variable of all records but MAX 20 characters e.g
$result = Ben,Jack\nJames,Peter\nMar
y,Alice
and continue for as long as LENGTH of $result is not more than 20 characters.
Help please.
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625