Results 1 to 6 of 6
Hybrid View
-
28th Feb 2012, 03:01 PM #1OPMemberWebsite's:
heroturko.biz softpk.com gfxtra.biz hotfilegfx.comPlease solve this problem
Dear sir,
I am writing a long description table torn out of its frame is lost.. please help me.. see this picture
i am using jquery.DataTable
My DB Code is:
PHP Code:<?php
// connect to the database
include('connect-db.php');
// get the records from the database
if ($result = $mysqli->query("SELECT * FROM insrep ORDER BY id"))
{
// display records if there are records to display
if ($result->num_rows > 0)
{
// display records in a table
echo "<div class='mws-panel grid_8'>";
echo "<div class='mws-panel-header'><span class='mws-i-24 i-table-1'>Installation Report</span></div>";
echo "<div class='mws-panel-body'>";
echo "<table class='mws-datatable mws-table'>";
// set table headers
echo "<thead><tr><th>Date</th><th>Service Report No</th><th>Hospital Name</th><th>Description</th><th>Model No</th><th>Serial No</th><th>Date of Installation</th><th>PPM Due date</th><th>Warranty</th></tr></thead>";
while ($row = $result->fetch_object())
{
// set up a row for each record
echo "<tr class='gradeX'>";
echo "<td>" . $row->dateinsrep . "</td>";
echo "<td>" . $row->servicereport . "</td>";
echo "<td>" . $row->hospitalname . "</td>";
echo "<td>" . $row->description . "</td>";
echo "<td>" . $row->model . "</td>";
echo "<td>" . $row->serial . "</td>";
echo "<td>" . $row->dinstall . "</td>";
echo "<td>" . $row->ppmduedate . "</td>";
echo "<td>" . $row->warranty . "</td>";
echo "</tr>";
}
echo "</tbody>";
echo "</table>";
echo "</div>";
echo "</div>";
}
// if there are no records in the database, display an alert message
else
{
echo "No results to display!";
}
}
// show an error if there is an issue with the database query
else
{
echo "Error: " . $mysqli->error;
}
// close database connection
$mysqli->close();
?>
how to possible here are 10 character show in the table and see the preview, the full description.
sorry my english is very bad. I'm trying to understand..
Thank Yousoftpk Reviewed by softpk on . Please solve this problem Dear sir, I am writing a long description table torn out of its frame is lost.. please help me.. see this picture http://vvcap.net/db/9G3CMUrJB3EqgN9mzZ71.png i am using jquery.DataTable My DB Code is: Rating: 5
-
28th Feb 2012, 03:36 PM #2Respected MemberWebsite's:
DL4Everything.com Soft2050.inYou could try to use css max-width property: http://www.w3schools.com/cssref/pr_dim_max-width.asp
Or use old html <table width="_px">
-
28th Feb 2012, 03:41 PM #3Member
This site is using a hacked database of W junction
Last edited by Gavo; 4th Jan 2015 at 02:25 PM.
-
28th Feb 2012, 11:00 PM #4Respected Member
What do you want to do? lengthen the headers to match the data or shorten the data to match the headers?
-
29th Feb 2012, 04:34 AM #5MemberWebsite's:
imdber.org justpaste.meSet the table's width
-
29th Feb 2012, 08:22 PM #6Respected Member
That didn't answer my question. So I will guess....
You need to set the class mws-datatable mws-table width to auto for each div and table.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
help me solve a problem on DLE
By mrayoub in forum Webmaster DiscussionReplies: 12Last Post: 15th May 2011, 06:59 AM -
Hot solve this problem
By andrew in forum vBulletinReplies: 17Last Post: 24th Aug 2010, 01:03 AM -
can any one solve my problem
By pioneer_fawad in forum Webmaster DiscussionReplies: 7Last Post: 20th Jul 2010, 04:34 AM -
Please Solve my Problem Last Time
By fact41 in forum General DiscussionReplies: 1Last Post: 27th Jun 2010, 10:39 AM -
i have a problem plz solve it
By lion_boy877 in forum Webmaster DiscussionReplies: 5Last Post: 6th Jan 2010, 07:49 PM
themaLeecher - leech and manage...
Version 5.02 released. Open older version (or...