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 3694052
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:27:02+00:00 2026-05-19T04:27:02+00:00

Im want to create a table that show the values of a mysql table.

  • 0

Im want to create a table that show the values of a mysql table. The problem is that when I open the page I only have the columns name. But I dont see any row. I also want to make a hyperlink of each row. How I will do that.

Here is my code:

<?php
  include_once 'rnheader.php';  
  echo '</br>';

  echo '<a href = "rnservices.php">  Create Service</a> ';

  echo '<table>';
  echo '<tr>';
  echo '<th>Service ID</th>';
  echo '<th>Title</th>';
  echo '<th>Description</th>';
  echo '<th>Notes</th>';
  echo '<th>Submit By</th>';
  echo '<th>Assigned Employee</th>';
  echo '<th>Assigned Group</th>';
  echo '<th>Category</th>';
  echo '<th>Status</th>';
  echo '<th>Urgency</th>';
  echo '<th>Customer</th>';
  echo '<th>Day Created</th>';
  echo '</tr>';

  $query = ("SELECT ServiceID, Title, Description, Notes, "
          ."                   SubmitBy, AssignedEmp, AssignedGroup, "
          ."                   NameCategory, TipoStatus, TiposUrgencia, "
          ."                   CustomerName, DayCreation "
          ."FROM    Service");

  $result = queryMysql($query);
  echo 'Number of Rows: ' . mysql_num_rows($result);

  while ($row = mysqli_fetch_assoc($result)) {
    echo '<tr>';
    echo '<td>' . $row['ServiceID'] . '</td>';
    echo '<td>' . $row['Title'] . '</td>';
    echo '<td>' . $row['Description'] . '</td>';
    echo '<td>' . $row['Notes'] . '</td>';
    echo '<td>' . $row['SubmitBy'] . '</td>';
    echo '<td>' . $row['AssignedEmp'] . '</td>';
    echo '<td>' . $row['AssignedGroup'] . '</td>';
    echo '<td>' . $row['NameCategory'] . '</td>';
    echo '<td>' . $row['TipoStatus'] . '</td>';
    echo '<td>' . $row['TiposUrgencia'] . '</td>';
    echo '<td>' . $row['CustomerName'] . '</td>';
    echo '<td>' . $row['DayCreation'] . '</td>';
    echo '</tr>';
  }

  mysqli_free_result($result);
  echo '</table>';
?>
  • 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-19T04:27:02+00:00Added an answer on May 19, 2026 at 4:27 am

    Try this:

    //not tested
    <p>
    include_once 'rnheader.php';  
    </p>
    <p>
    echo '<a href = "rnservices.php">  Create Service</a> ';
    </p>
    
    echo '<table>';
    echo '<tr>';
    echo '<th>Service ID</th>';
    echo '<th>Title</th>';
    echo '<th>Description</th>';
    echo '<th>Notes</th>';
    echo '<th>Submit By</th>';
    echo '<th>Assigned Employee</th>';
    echo '<th>Assigned Group</th>';
    echo '<th>Category</th>';
    echo '<th>Status</th>';
    echo '<th>Urgency</th>';
    echo '<th>Customer</th>';
    echo '<th>Day Created</th>';
    echo '</tr>';
    
    
    $query = ("SELECT ServiceID, Title, Description, Notes, SubmitBy, AssignedEmp, " .
    "AssignedGroup, NameCategory, TipoStatus, TiposUrgencia, CustomerName, DayCreation FROM Service");
    
    // Perform Query
    $result = mysql_query($query);
    
    //use results
    while ($row = mysql_fetch_assoc($result)) {
        echo '<tr>';
        echo '<td>'.$row['ServiceID'].'</td>';
        echo '<td>'.$row['Title'].'</td>';
        echo '<td>'.$row['Description'].'</td>';
        echo '<td>'.$row['Notes'].'</td>';
        echo '<td>'.$row['SubmitBy'].'</td>';
        echo '<td>'.$row['AssignedEmp'].'</td>';
        echo '<td>'.$row['AssignedGroup'].'</td>';
        echo '<td>'.$row['NameCategory'].'</td>';
        echo '<td>'.$row['TipoStatus'].'</td>';
        echo '<td>'.$row['TiposUrgencia'].'</td>';
        echo '<td>'.$row['CustomerName'].'</td>';
        echo '<td>'.$row['DayCreation'].'</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

I want to create a new column in a MYSQL table that has Fn
I want to create a html page that get data from a website table
I have a problem of listing duplicated rows that include NULL columns. Lemme show
I want to create a table that is fully contained within its parent element,
I want to create a new field (or two) in my table that is
I want to create a generic html table to excel file view that can
I have a UIButton that is created inside of each table cell. I want
I totally want to avoid using inline javascript! But i have a table which
I want to create a simple html table in grid having values like 1
Environment: MySQL 5.1, Linux I have a stored procedure that computes several values from

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.