I am currently updating my site from an older version to the new 1.5.4 and with a new theme. on my old site, I have a script on the tpl_header file that tells when the inventory was last updated
Here is the script:
PHP Code:
$updated = mysql_query("SELECT `time` FROM `inv_rsr` where `id`='1'") or die(mysql_error());
while ($inv_updated = mysql_fetch_array($updated)) { ?>
Inventory Last Updated: <?php echo $inv_updated['time']; } ?> CST
but when I but it in the tpl_header file in the new theme on the update version of ZC I get the following output:
Access denied for user 'root'@'localhost' (using password: NO)
Can someone help me work this out?
Thanks,
Clint
Bookmarks