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

  • SEARCH
  • Home
  • 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 6038423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:13:07+00:00 2026-05-23T06:13:07+00:00

.I have the following code. I am wondering why does my echo ‘<font color=#FF0000>’.$update_date2.'</font><br><br>’.$status.'<br>’;

  • 0

.I have the following code. I am wondering why does my “echo '<font color="#FF0000">'.$update_date2.'</font><br><br>'.$status.'<br>';” does not show on the screen?

.is it okay to use while statement inside another while statement? as shown in my code below.

<?php
$getquery = mysql_query("SELECT * FROM it_task ORDER BY task_id DESC");
while ($rows = mysql_fetch_array($getquery))
{
    $id= $rows['task_id'];
    $date=$rows['date'];
    $update_date = $rows['update_date'];
    $project=$rows['project'];
    $topic=$rows['topic'];
    $instby=$rows['instby'];
    $inst=$rows['inst'];
    $dline=$rows['dline'];
    $ocome=$rows['ocome'];
    $comm=$rows['comm'];
    $fin=$rows['fin'];
    echo "<div id=\"container\">";
    echo "<table>";
    echo "<tr>";
    echo "<div id=\"conid\">$id</div>";
    echo "<div id=\"condate\">$date</div>";
    echo "<div id=\"conproject\">$project</div>";
    echo "<div id=\"contask\">$topic</div>";
    echo "<div id=\"conselect\">$instby</div>";
    echo "<div id=\"conselect1\">$inst</div>";
    echo "<div id=\"condline\">$dline</div>";
    echo "<div id=\"conocome\">";
    $updatesquery = "SELECT * FROM it_task_update WHERE update_id=$id";
    while($rows1 = mysql_fetch_array($updatesquery));
    {
        $update_date2 = $rows1['update_date'];
        $status = $rows1['ocome'];
        $update_id = $rows1['update_id'];
        echo '<font color="#FF0000">'.$update_date2.'</font><br><br>'.$status.'<br>';
    }
    echo "</div>";
    echo "<div id=\"concomm\">$comm</div>";
    echo "<div id=\"confin\">$fin</div>";
    echo "</tr>";
    echo "</table>";
    echo "</div>";
}
?>

.where have i done wrong in this set of codes. can anyone guide me pls. TIA! More power! 🙂

  • 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-23T06:13:08+00:00Added an answer on May 23, 2026 at 6:13 am

    You have a semicolon after the inner while

    while($rows1 = mysql_fetch_assoc($updatesquery));
    {
     // stuff
    }
    

    should be

    while($rows1 = mysql_fetch_assoc($updatesquery))
    {
     // stuff
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code and was wondering why I am not allowed to
I have the following code that does what I want however I was wondering
I have the following c# code, it does a check on permissions. I'm wondering
I have found following code in mysql documentation but wondering what does it mean
I have the following code when i add to the list it does not
I have the following code which is working, I was wondering if this can
I have been wondering about the following lines of code [self performSelector:@selector(myMethod) withObject:self afterDelay:1.0];
I have the following code in my models.py file and I'm wondering how it's
Any idea why the LINQ OrderBy is not working in following code, (have no
I have the following code, and it will not work. I am currently working

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.