slaly Posted June 2, 2009 Share Posted June 2, 2009 im a beginner learning php and i've met some errors and problems on the way.i've attached 2 codes that i've done. 1st,i want the initial values in the database to appear in the textbox for people to edit and update.but i could not get it out.all i got out was eg,$Name.literally $Name.that is not what i want.i want the value of $Name and not $Name. 2nd,even if i ignore the 1st part mentioned above and go ahead updating my stuffs,i've got this syntax error.the error message is: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 i've tried checking my codes but they appeared fine to me.i really really need help.please help me solve my problems.sorry for the messy codes that i've attached.thank you in advance! [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/160583-how-to-make-data-in-mysql-appear-in-textbox-for-users-to-edit/ Share on other sites More sharing options...
dmcke5 Posted June 2, 2009 Share Posted June 2, 2009 I too am a beginner with this stuff but try using the full php tags when your echoing your variable(instead of just the <? use <?php) And that may help Quote Link to comment https://forums.phpfreaks.com/topic/160583-how-to-make-data-in-mysql-appear-in-textbox-for-users-to-edit/#findComment-847518 Share on other sites More sharing options...
slaly Posted June 2, 2009 Author Share Posted June 2, 2009 as for <? and <?php,both also can be used.both are working fine. thanks anyway. Quote Link to comment https://forums.phpfreaks.com/topic/160583-how-to-make-data-in-mysql-appear-in-textbox-for-users-to-edit/#findComment-847537 Share on other sites More sharing options...
cltn77 Posted June 2, 2009 Share Posted June 2, 2009 try to use method="post". Hope this will solve your problem Quote Link to comment https://forums.phpfreaks.com/topic/160583-how-to-make-data-in-mysql-appear-in-textbox-for-users-to-edit/#findComment-847623 Share on other sites More sharing options...
slaly Posted June 3, 2009 Author Share Posted June 3, 2009 POST method does not help.but thank you for trying. Quote Link to comment https://forums.phpfreaks.com/topic/160583-how-to-make-data-in-mysql-appear-in-textbox-for-users-to-edit/#findComment-848254 Share on other sites More sharing options...
slaly Posted June 3, 2009 Author Share Posted June 3, 2009 or maybe i should ask How To Populate A Form??can anybody do out a code for me??? Quote Link to comment https://forums.phpfreaks.com/topic/160583-how-to-make-data-in-mysql-appear-in-textbox-for-users-to-edit/#findComment-848283 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.