UPDATE phpwcms_article SET article_public = '0';

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
patoche
Posts: 11
Joined: Mon 7. Mar 2005, 19:05

UPDATE phpwcms_article SET article_public = '0';

Post by patoche »

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
phwhitfield
Posts: 22
Joined: Wed 13. Apr 2005, 10:39

Post by phwhitfield »

To execute an SQL command from php simply use this code:

Code: Select all

$result = mysql_query("SQL-Statement")
see this page for details: http://ch2.php.net/manual/en/function.mysql-query.php
patoche
Posts: 11
Joined: Mon 7. Mar 2005, 19:05

Post by patoche »

I just need to launch this action by click on a link
but i don't know how
Post Reply