| | |
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: 50
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
| Thread Tools | Search this Thread |
agplv3 alfresco amazon api aws bizspark breathalyzer changingprices cmg communityjournalism contentmanagement contractors copyright count court crm database design developer development distinct drupal dui ec2 email enterprise eudora facebook form foss gartner gnu government gpl greenit groklaw groupware hiring hyperic images innerjoins insert ip joebrockmeier join journalism keyword keywords kickfire laptop law legal license licensing linux maintenance managing mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opendatabasealliance opengovernment opensource oracle penelope php priceupdating query referencedesign reorderingcolumns resultset saas select sharepoint simpledb sourcecode spotify sql sugarcrm syntax techsupport thunderbird transparency virtualization






