| | |
help!! update mysql problem
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
whats wrong with this code?
i'm really confused!
when i use INSERT code insted of UPDATE in my file, every thing is ok. but when i use UPDATE,it doesn't
work!!
UPDATE:
INSERT:
HTML Code:
i'm really confused!
when i use INSERT code insted of UPDATE in my file, every thing is ok. but when i use UPDATE,it doesn't
work!!
UPDATE:
MySQL Syntax (Toggle Plain Text)
$query = "UPDATE $tblname SET title='$title', desc='$desc', body='$body', time='$time', faday='$faday', famonth='$famonth', fayear='$fayear', fu_show='$fu_show', fu_day='$fu_day', fu_month='$fu_month', fu_year='$fu_year', wshow='$wshow', dshow='$dshow' WHERE id=$id";
INSERT:
HTML Code:
MySQL Syntax (Toggle Plain Text)
$query = "INSERT into $tblname values '0', '$title', '$desc', '$body', '$time', '$faday', '$famonth', '$fayear', '$fu_show', '$fu_day', '$fu_month', '$fu_year', '$wshow', '$dshow')" OR die(mysql_error());
•
•
Join Date: Mar 2004
Posts: 1,620
Reputation:
Solved Threads: 51
Hello,
Check your grant tables to see if you have the update permission.
http://dev.mysql.com/doc/refman/5.0/...ing-users.html
This could be the source of your problem... you might not have the UPDATE permission.
Christian
Check your grant tables to see if you have the update permission.
http://dev.mysql.com/doc/refman/5.0/...ing-users.html
This could be the source of your problem... you might not have the UPDATE permission.
Christian
•
•
•
•
Originally Posted by kc0arf
Hello,
Check your grant tables to see if you have the update permission.
Christian
i use EasyPHP 1.6.0.0
i did it
i checked grant tables
i activated it for All actions, all DBs
but still have problem!
یادباد آنکه درونت نظری با ما بود
رقم مــهر تو بر چهره*ی ما پیدا بود-----------------------------------------------------------------
O' what the good days were those, when you was in love with me.
and because of that, my face was full of happiness.Hafiz
رقم مــهر تو بر چهره*ی ما پیدا بود-----------------------------------------------------------------
O' what the good days were those, when you was in love with me.
and because of that, my face was full of happiness.Hafiz
MySQL Syntax (Toggle Plain Text)
UPDATE `adds` SET `client` = 'client1',`TOTALCOST` = 'totalcost' WHERE `ID` =9710
MySQL Syntax (Toggle Plain Text)
INSERT INTO `adds` ( `ID` , `client` , `colour`) VALUES ( NULL , 'sda', 'ads');
try like that
![]() |
Similar Threads
- how to update data in mysql table using data from an excel table (MySQL)
- about VC+MySQL problem:) (C)
- server notify client to update MySQL table (C)
- php mysql problem (PHP)
- update problem (MySQL)
Other Threads in the MySQL Forum
- Previous Thread: ERROR 2002: Can't connect to local MySQL server
- Next Thread: update problem
Views: 3722 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for MySQL
"use" 1 agplv3 alfresco amazon api artisticlicense aws bizspark breathalyzer camparingtocolumns changingprices cmg communityjournalism contentmanagement contractors copyright count court crm database design development distinct drupal ec2 eliminate email enter enterprise error eudora facebook form foss gartner gnu gpl greenit groklaw groupware hiring hyperic images innerjoins insert ip joebrockmeier join journalism keywords kickfire laptop law linux maintenance managing mariadb metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opendatabasealliance opensource operand oracle pdf php priceupdating query referencedesign remove reorderingcolumns resultset saas search sharepoint simpledb sourcecode spotify sql statement sugarcrm syntax techsupport transparency update






