I want to show only first 50 lines of the $name of the player using string. I used substring but its not work for me. Can anyone edit the code and show only first 50 lines of name. Thanks for the help....
<?php
include('config.php');
$tbl_name="players"; // Table name
$sql="SELECT * FROM $tbl_name ORDER BY id DESC LIMIT 0,6";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)){
echo "<li><a style=\"text-decoration:none\" href=\"playerslist.php?id=" .$rows['id']. "\">" .$rows['name']. "</a></li>\n";
}
?>