I’m having a problem with a pdo->prepare statement giving me a sql error. Here’s the statement:
$srcs = glob(‘download/.tar.’);
$src = $srcs[count($srcs) - 1];
$srcname = basename($src);
$md5src = md5_file($src);
$php_scripts = ‘…/php/’;
require $php_scripts . ‘PDO_Connection_Select.php’;
if (!$pdo = PDOConnect(“foxclone_data”))
$stmt = $pdo->prepare(“UPDATE files SET filename = ‘$srcname’, md5 = ‘$md5src’, logtime=now() WHERE id = 4”);
I know it’s probably obvious, but I’ve been looking at this code for days and just not seeing it.
Thanks for your help.