gavin1512 Posted March 14, 2008 Share Posted March 14, 2008 Good Morning, Having a small issue with displaying results from the database in a text box, it reads from the SQL database fine and dispalys part of the record but only the first word of the record, anything after a space is not displayed Is there a way of displaying the whole record not just the first word? and is it possible to hide the box and just display the data? it needs to be displayed ina text box due to the multiple GET statements used on the page. The code I am using for the text boxes is: <td><input name="type" type="text" readonly="true" Value=<?php echo $row['type']?> /></td> Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/96132-displaying-db-row-in-text-box-error/ Share on other sites More sharing options...
samshel Posted March 14, 2008 Share Posted March 14, 2008 Hi, try this <td><input name="type" type="text" readonly="true" Value="<?php echo $row['type']?>" /></td> hth SamShel Quote Link to comment https://forums.phpfreaks.com/topic/96132-displaying-db-row-in-text-box-error/#findComment-492120 Share on other sites More sharing options...
gavin1512 Posted March 14, 2008 Author Share Posted March 14, 2008 Brilliant! if only all problems were that easy Cheers Quote Link to comment https://forums.phpfreaks.com/topic/96132-displaying-db-row-in-text-box-error/#findComment-492130 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.