Currently i want to print out full text from my database, but it just print out 1 text, i don’t know why and how to solve it, the code and image showed below::
print "<td><input name='taskname[]' type='text' size='225' value=".$db_field['task_name']." readonly=readonly></td>";

suppose it come out full text like “configure new problem” but it didn’t, why would it happen?
You need to place the value of the
valueattribute between quotes:And since you are outputting content inside HTML, you also need to call
htmlspecialcharson it:The second (encoding options) and third (text encoding of input) parameters of
htmlspecialcharsmust be set to correct values; please take a look at the documentation determine which ones are correct for you.