| | |
update query
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2009
Posts: 81
Reputation:
Solved Threads: 0
Hi everybody,
here is my update query ..there is no error but the record is not updated.
anybody know of what should I edit?
Many thanks
here is my update query ..there is no error but the record is not updated.
anybody know of what should I edit?
Many thanks
php Syntax (Toggle Plain Text)
mysql_query("UPDATE lesson SET(`subject`= '{$ins_subject}',`year`='{$ins_year}',`noofstudents`='{$ins_noofstudents}', `minutes`='{$ins_minutes}',`ability`='{$ins_ability}',`learningArea`='{$ins_learningArea}',`objectives`='{$ins_objectives}', `LO`='{$ins_LO}',`skills`='{$ins_skills}',`prerequisite`='{$ins_prerequisite}',`resources`='{$ins_resources}',`introduction`='{$ins_introduction}', `activity`='{$ins_activity}',`step2`='{$ins_step2}',`step3`='{$ins_step3}',`step4`='{$ins_step4}',`assessment`='{$ins_assessment}', `reflection`='{$ins_reflection}',`closure`='{$ins_closure}',`extension`='{$ins_extension}',`author`='{$ins_author}') WHERE lessonID='$id'") ;
•
•
Join Date: Aug 2005
Posts: 149
Reputation:
Solved Threads: 13
How about trying your WHERE-Clause? My best advice is to echo your query, examine it and check Mysql_error() or just copy and paste it to PHPmyAdmin. Some sort of this question can't and won't be answered by anyone here in the forum.
•
•
Join Date: May 2009
Posts: 81
Reputation:
Solved Threads: 0
Thanks sDjH,
I have tried as what you suggest.
here is the 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 1.
I tried to understand what it is..but still was not able to solve it.
Any suggestion?
Thanks
I have tried as what you suggest.
here is the 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 1.
I tried to understand what it is..but still was not able to solve it.
Any suggestion?
Thanks
•
•
Join Date: Apr 2009
Posts: 254
Reputation:
Solved Threads: 37
check all the quotes and commas and braces, perhaps your are missing some thing that's way problem is arising. and there is no need to apply braces around the variables.
![]() |
Similar Threads
- Update query in event procedure for Form (Visual Basic 4 / 5 / 6)
- Update query after cfmail (ColdFusion)
- UPDATE query problem (ASP.NET)
- How can i update a query that have more than 3 tables using adodc in vb? (Visual Basic 4 / 5 / 6)
- UPDATE query not working properly... (PHP)
- Need update query--Remove the coma "," (PHP)
- Error while trying the update query (ASP)
Other Threads in the PHP Forum
- Previous Thread: how to enter data in database from HTML form
- Next Thread: php: compare array values from 2 tables
| Thread Tools | Search this Thread |
# 5.2.10 alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search secure server sessions sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube





