471,072 Members | 1,243 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,072 software developers and data experts.

database info in forms

HI all

i am just wondering if this is at all possible

i know you can get data from mysql database and display it in a table format

what i would like to know is if it is possible to show the data in a text field so i could then change the data and submit it back to the database.

thanks in advance
Aug 14 '06 #1
4 1179
Banfa
9,065 Expert Mod 8TB
Yes, just write it as the value of a text input or textarea and you will be able to edit it. You will need some more serverside script to write it back to the MySQL database.
Aug 14 '06 #2
i have tried putting it in where i think is the right place but i get a prse error
Expand|Select|Wrap|Line Numbers
  1. echo " <tr>
  2. <td align=\"center\">{$row['dr']}</td>
  3. <td align=\"center\">{$row['game']}</td>
  4. <td align=\"center\">{$row['time']}</td>
  5. <td align=\"center\">{$row['Channel']}</td>
  6. <td align=\"center\">{$row['home_score']}</td>
  7. <td align=\"center\"><input type="text" name="as" size="30" value="<?php echo {$row['away_score']}; ?>" /></td>
  8. </tr>\n";
can anyone help
the error i am getting is:
parse error: parse error, unexpected T_STRING, expecting ',' or ':' in the "file name" on line 87

the long line is 87

any help would be greatly appriciated
Aug 14 '06 #3
Banfa
9,065 Expert Mod 8TB
You got confused, you where already inside an echo statement when suddenly you stop escaping " and issue another echo command on that line.
Aug 14 '06 #4
thanks for replying so quickly

so how do i get around this problem???

do i stop the first echo statement before the line??
Aug 14 '06 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by democratix | last post: by
2 posts views Thread by Rosy Moss | last post: by
2 posts views Thread by Karen | last post: by
3 posts views Thread by James Armstrong | last post: by
9 posts views Thread by Pam Ammond | last post: by
11 posts views Thread by CM Manager via DotNetMonster.com | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.