@puppy_apprentice I had looked at that but still had problems making it work. After some thought it wouldn't do what I wanted anyway because it did not wrap long words. If there were two long words it would put the second word on the next line but it does that now.
Apparently it's possible to set the word length and if the word is greater than the length it shows dots. EG: Set the word length to 15 characters and the following is displayed: Supercalifragil...
This would be acceptable. Also another option would be to shrink the font size to make it fit the space.
Code: Select all
<?php
class MyDB extends SQLite3
{
function __construct()
{
$this->open('contact23.sqlite');
}
}
$db = new MyDB();
if(!$db){
echo $db->lastErrorMsg();
} else {
}
$ret = $db->query("SELECT * FROM Details");
while($row = $ret->fetchArray(SQLITE3_ASSOC) ){
echo "<tr onclick=\"More(".$row['ID'].")\";><td class='priority-6'>".$row['ID']."</td>";
echo "<td class='priority-4'>".$row['Rank']."</td>";
echo "<td class='priority-2'>".$row['FirstName']."</td>";
echo "<td class='priority-1'>".$row['LastName']."</td>";
echo "<td class='priority-3'>".$row['Course']."</td>";
echo "<td class='priority-5'>".$row['PassedAway']."</td></tr>";
}
$db->close();
?>
These are the two lines I think I need to modify.
Code: Select all
echo "<td class='priority-2'>".$row['FirstName']."</td>";
echo "<td class='priority-1'>".$row['LastName']."</td>";