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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:33:14+00:00 2026-05-28T02:33:14+00:00

I am not getting the proper representation of an HTML table after inserting php

  • 0

I am not getting the proper representation of an HTML table after inserting php code in
“td” tag while the code is is php page only so that server can execute the code inside the “td” tag. Following is the code :

<table border=1>
<tr>

    <td><select name="designer_response" id="designer_response" <?php if($variable == 0)echo 'disabled=disabled' ?> ><option value="Yes">Yes</option><option value="No">No</option></select></td>
    <td><textarea name="designer_comments" id="designer_comments"><?php echo "".$designer_c ?></textarea></td>
    <td><select name="reviewer_response" id="reviewer_response"><option value="Yes">Yes</option value="No"><option>No</option></select></td>
    <td><textarea name="reviewer_comments" id="reviewer_comments"><?php echo "".$reviewer_c ?></textarea></td>

</tr>
</table>

Thanks…

Please find the php code that modifies and defines the variables in the code snppet given above :

<?php
$id = 'Q420';
$phase_of_review = 0;
$designereviewer_r = "";
$designereviewer_c = "";
$reviewer_r = "";
$reviewer_c = "";
$con = mysql_connect("localhost","root","");
mysql_select_db("checklist", $con);

//Extracting data...
$s = "select * from dummy";
$resource = mysql_query($s , $con);
if($resource == TRUE)
{

//Yes data is there , fetch it ..
$data = mysql_fetch_assoc($resource);
$designer_r = $data['designer_response'];
$designer_c = $data['designer_comments'];
$reviewer_r = $data['reviewer_response'];
$reviewer_c = $data['reviewer_comments'];

echo "designer_response".$designer_r;
 }

  else
  $phase_of_review = 1; 

  $variable = 1;
 ?>

Below is the output html of the php code given above:

<table border=1 bordercolor="black">

<tr>
<td><select name="designer_response" id="designer_response"       ><optionvalue="Yes">Yes</option><option value="No">No</option></select></td>
<td><textarea name="designer_comments" id="designer_comments">ok2</textarea></td>
<td><select name="reviewer_response"   id="reviewer_response"><option  value="Yes">Yes</option value="No"><option>No</option></select></td>
<td><textarea name="reviewer_comments" id="reviewer_comments">ok3</textarea></td>
</tr>


</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-28T02:33:15+00:00Added an answer on May 28, 2026 at 2:33 am

    Two things stand out to me in the output HTML, but I’m not sure they will actually solve your problems. First, there is a space missing with the first “Yes” option tag in the output HTML, but this could be just a copy/paste issue. In the output HTML, the first option tag is appearing as optionvalue, which is invalid.

    Second, you have the value="No" attribute in your reviewer_response select list in the closing option tag for the “Yes” option rather than in the opening tag of the “No” option.

    To me, neither of those really says, “this is what’s causing the primary issue;” however, cleaning up the little issues with the code could solve the bigger problems as a side effect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Someone said that I might not be getting how to proper code in Haskell.
My code does not pull the proper link for the item. Instead it's getting
I'm getting the error: parser error : Input is not proper UTF-8, indicate encoding
So my code is below. I'm not getting any errors and it places everything
I am trying to work with an HTML.DropDownList in MVC and am not getting
What I'm missing here? Not getting proper legend label. p <- ggplot(mtcars, aes(factor(cyl), mpg))+
I'm not getting any errors as such just a minor performance issue. EXPLAIN SELECT
I am not getting why the colon shifted left in the second time >>>
For some reason I'm not getting this. (Example model below) If I write: var
hi im trying to using flashVars however for some reason there not getting sent

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.