Guest Posted July 9, 2009 Share Posted July 9, 2009 Dear all... Anyone can tell me how to write something on database... On this moment i want write the number "1" on field "Clicks" inside table "feeds"... I'm doing something like $sql = "UPDATE feeds SET clicks=1"; , but nothing happens Can anyone help??? Best Regards Link to comment Share on other sites More sharing options...
MrPhil Posted July 9, 2009 Share Posted July 9, 2009 If this is just a "one off" change, I would suggest doing it in phpMyAdmin (or whatever other tool your host provides, that permits you to enter SQL statements to be immediately executed). If you're building PHP code to do this, was the code you gave added to an existing bit of code, or is it a new script? In either case, do you understand how to open MySQL, select the proper database, submit the query you gave, and handle results? Presumably you're not doing that one line all by itself and expecting the database to be updated! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.