Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6862781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:42:11+00:00 2026-05-27T02:42:11+00:00

I have a table which displays reviews written by users about products. The problem

  • 0

I have a table which displays reviews written by users about products. The problem I am having is that the table isn’t showing everything in the table. In other words, the data I want displayed is coming up but not the whole amount.

This is the code for my table:

<?php

$result = mysql_query("SELECT * FROM reviews WHERE serial = '$id'")
or die(mysql_error()); ;

if (mysql_num_rows($result) == 0) {
       echo 'There Arent Any Reviews Yet';
    } else {

echo "<table width=100% border='6'><tr><th>Comments/Thoughts</th><th>Ratings</th><th>Date</th><th>User</th>";
while($info = mysql_fetch_array($result))
{
        echo "<tr>";
        echo "<td>" . $info['review']. "</td>";
        echo "<td>" . $info['ratings']. " Stars</td>";
        echo "<td>" . $info['date']. "</td>";
        echo "<td>" . $info['user']. "</td>";
        }
    }
echo "</tr>";
echo "</table>";
?>

when a user types in a review, only a few words in the table are shown. it seems like there is a limit to how much of the written review can be shown but i do not know where to change that value.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:42:12+00:00Added an answer on May 27, 2026 at 2:42 am

    Your while loop needs to include <tr> tags (a.k.a table row tags) to correctly form the table. You also have a malformed table header.

    echo "<table width=100% border='6'>
              <tr> 
                  <th>Comments/Thoughts</th>
                  <th>Ratings</th>
                  <th>Date</th>
                  <th>User</th>
              </tr>"; // Missing TR here also!!
    while($info = mysql_fetch_array($result))
    {
            echo "<tr>";
            echo "<td>" . $info['review']. "</td>";
            echo "<td>" . $info['ratings']. " Stars</td>";
            echo "<td>" . $info['date']. "</td>";
            echo "<td>" . $info['user']. "</td>";
            echo "</tr>";
    }
    echo "</table>";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Rails 3.0.3 ruby 1.9.2p0 The Problem: I have a Users table which has many
I have a table view which displays potentially hundreds of image thumbnails. The problem
I have web page in PHP which displays all records in a table. I
i have created a table view which displays database fields.i need to add a
In my app I have a table view, which displays a set of data,
I have a GridView which displays in excess of 30000 rows, and users need
I have a table which displays the data from a database. The <tr> and
I have a table which displays some grid data for search results...Now the height
I have the following table which displays the results of a match and the
In Rally we have a custom App which displays a table. Is there a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.