Hi there
Frustrating problem I hope someone might be able to help me with...
I'm setting up a php/mysql site with two sites, admin and user. On the admin side, I'm setting up three types of functions: Add record, delete record and change record. I've got Add and Delete licked, my problem comes with the change record.
The way I'm handling it is that there are 11 fields per record and I'm reading the data from the current record then putting the fields into text fields, text areas, drop-down lists, etc on the change page, just like the same interface used for adding a record, except populating the fields with the current data.
My problem is: when I read data from the database and try to put it in a text field, all I get is the first word from the database field into the text fields on the html form (i.e. anything up to the first blank space stored in the database field). The fields are TEXTVAR's and I read them in with mysql_fetch_array, then have a ?php echo $whatever ? in the "value" field for the "text" input type.
...hope that made sense...
What am I doing wrong that makes it read/print only the first word of what's in the database field into the "value" field?
Any help would be appreciated