
Originally Posted by
AlChuck
Is the squirrelcart code preventing any attempt from a connection made from code outside the squirrelcart directory and from PHPMyAdmin?
No. That would actually be impossible.
You can easily connect to the database by including the 'squirrelcart/pre_common.php' file. Drop a file like this in the same location as your squirrelcart folder:
test.php
PHP Code:
<?php
include 'squirrelcart/pre_common.php';
if (!security_level('Store Admin')) die "You must login to use this page.";
$products = sc_query('SELECT `Name` FROM `Products` LIMIT 0,10', MYSQL_ASSOC, 1);
sc_print_array($products);
?>
Load it in your browser. It will connect to your database and display 10 products.