php-windows Digest 9 Apr 2012 15:44:20 -0000 Issue 4022

Topics (messages 30826 through 30826):

Function assistance
        30826 by: Gavin

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
All,

I am having a small issue which is making me bang my head against a wall.

I am running XAMMP with PHP 5.4 installed and this worked before uploading to my live dev site.

The part of the function that doesn't seem to be working is :

        $pdo = $this->connection();
        $sql = "UPDATE `memeber` SET `vcode`=:vcode WHERE `loginName`=:loginName and `email`=:email";
        $q = $pdo->prepare($sql);
        $q->execute(array(':vcode' => $vcode, ':loginName' => $loginName, ':email' => $email));

I have tried the SQL statement direct into PHPMyAdmin, replacing the :name holders with true data, and it worked.

But trying the above script fails to update. Am i missing something completely here?
--
Best Regards,

Gavin Chalkley


MSTC WES7

--- End Message ---

Reply via email to