Joomla.it Forum

Componenti per Joomla! => Gestione Form => : mayhem123 29 Apr 2013, 22:24:45

: cambio valore catid
: mayhem123 29 Apr 2013, 22:24:45
Ciao,


non capisco perchè il seguente codice non mi cambia il valore di catid all'id #110:


:
<?php
$hostname 
'host.com';
$username 'user';
$password 'password';
$dbname 'dbname';
$categoryid '17';
$itemid '110';
$db = new PDO("mysql:host=$hostname;dbname=$database",$username,$password);
$update_stmt $db->prepare('
             UPDATE
               #__content
            SET
               catid='
$categoryid
           WHERE
               id='
$itemid'
        '
);
$update_stmt->execute(); 
$update_stmt->close();
?>

Non ho errore ma il valore non mi viene cambiato, perchè?

Sto utilizzando Joomla 2.5.8 e Chronoforms V4 e il sito è su godaddy.


Grazie per gli aiuti.
: Re:cambio valore catid
: vales 01 May 2013, 06:31:56
non ho capito se la tabella di trova su db esterno o su quello di joomla.