0

Hi
I'm working on a small project and I faced this problem.
when I create a table then I wright a lot of words it doesn't go to the next line (row) it continue to the right so the page become so wide !
so is there any solution for that ?

2
Contributors
3
Replies
12
Views
3 Years
Discussion Span
Last Post by keloa
0

It would be more helpful if you provide sample code from this table you are referring to.

0

will the code is a little missy but I hope its ok with you

<?php
session_start();
require_once('../inc/config.php');
if(!isset($_SESSION['admin'])){
    header("Location: login.php");
}else{
    $id = $_GET['id'];
    $sql = "SELECT * FROM serv WHERE id='".$id."'";
    $query = mysql_query($sql);
    while($row = mysql_fetch_object($query)){
        echo "
        <html dir='rtl'>
        <head>
        <meta charset='UTF-8' />
        </head>
        <table border='1' >
        <tr>
        <td>".$row->username."</td>
        <td>".$row->title."</td>
        <td>".$row->status."</td> 
        </tr>
        <center><tr>
        <td colspan='3'><p>".$row->describtion."</p></td>
        </tr></center>
        </table>
</html>
        ";
    }
}

?>

Edited by keloa

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.