Hi I have a simple php code that retrieves the data and then I would like to place , the data, in a table. For some strange reason the $row[Descr] content won't fully print. Instaed of "this is a test" . it just prints "this". I have tested the data outside the table content , as you can see from echo $row[Descr]; Code (markup): , which it is displayed properly. I am using the following code: echo $row[Descr]; echo "</td>"; echo "</tr>"; echo "<tr class='below'>"; echo "<td width='117' align='center'><input size='12' name='partn' class='input' value=". $row[part_number]." > </td>"; echo "<td width='85' align='center'><input size='9' class='input' name='nameeach' value=".$row[Price]." > </td>"; echo "<td width='200' align='center' ><input size='30' name='Descr' class='input' value=".$row[Descr]." > </td>"; echo "<td width='156' ><a target='_blank' href='../C28reduced/C28'". $rowpdf[page_number]."pdf' ><img class='pdf' src='../images/pdflogo.gif' > </a> </td>"; Code (markup): there is enough space for it to get printed too. I am so confused. Thanks in advance guys.
try putting single quotes around the contents of value like this echo "<td width='200' align='center' ><input size='30' name='Descr' class='input' value='".$row[Descr]."' > </td>"; Code (markup):
Are you sure the row Desc in phpmyadmin has not got a limit on it only allowing you to insert a maximum string, thats probaly why it only displays test.
I agree with Ratty. The problem is that, without quotes, each word gets treated like another HTML element.