I would like to put a link to make all article not public
I don't know the syntax on php to do what sql action
UPDATE phpwcms_article SET article_public = '0';
Thanks to help
UPDATE phpwcms_article SET article_public = '0';
-
- Posts: 22
- Joined: Wed 13. Apr 2005, 10:39
To execute an SQL command from php simply use this code:
see this page for details: http://ch2.php.net/manual/en/function.mysql-query.php
Code: Select all
$result = mysql_query("SQL-Statement")