munchy Posted September 30, 2006 Share Posted September 30, 2006 Hello!I am a teacher building a website to help students with their math work. Right now I am making the communication page where I post homework, test dates and the like. These are MYSQL database fields that I am trying to update using a web form so I do not have to go into phpmysqladmin and update each field by hand. I am hitting a brick wall with the script. I can make a form that updates these fields, but some fields I just want to stay as is. Is it possible to make some code to read the already-existing comments into an editable text field, so that I can make changes to the ones I need to change and then submit the form? All I would need help with is the part that reads the text into the text field, I can handle everything else (I'm pretty sure...)Thanks,Munchy Quote Link to comment Share on other sites More sharing options...
trq Posted September 30, 2006 Share Posted September 30, 2006 [code=php:0]// connect and query your database.// returning an array of records called $row.echo "<form>";echo "<textarea name=\"edit\">{$row['fieldtoedit']}</textarea>";echo "</form>";[/code] Quote Link to comment Share on other sites More sharing options...
munchy Posted September 30, 2006 Author Share Posted September 30, 2006 Thanks Thorpe! I'll give that a try! Quote Link to comment 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.