Activity Stream
48,167 MEMBERS
62173 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 6 of 6
  1.     
    #1
    Member
    Website's:
    heroturko.biz softpk.com gfxtra.biz hotfilegfx.com

    Default 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




    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 You
    softpk 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

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    You 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">

  4.     
    #3
    Member
    This site is using a hacked database of W junction
    Last edited by Gavo; 4th Jan 2015 at 02:25 PM.

  5.     
    #4
    Respected Member
    What do you want to do? lengthen the headers to match the data or shorten the data to match the headers?

  6.     
    #5
    Member
    Website's:
    imdber.org justpaste.me
    Set the table's width

  7.     
    #6
    Respected 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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. help me solve a problem on DLE
    By mrayoub in forum Webmaster Discussion
    Replies: 12
    Last Post: 15th May 2011, 06:59 AM
  2. Hot solve this problem
    By andrew in forum vBulletin
    Replies: 17
    Last Post: 24th Aug 2010, 01:03 AM
  3. can any one solve my problem
    By pioneer_fawad in forum Webmaster Discussion
    Replies: 7
    Last Post: 20th Jul 2010, 04:34 AM
  4. Please Solve my Problem Last Time
    By fact41 in forum General Discussion
    Replies: 1
    Last Post: 27th Jun 2010, 10:39 AM
  5. i have a problem plz solve it
    By lion_boy877 in forum Webmaster Discussion
    Replies: 5
    Last Post: 6th Jan 2010, 07:49 PM

Tags for this Thread

BE SOCIAL