Database problem

greenspun.com : LUSENET : S-Mart Shopping Cart : One Thread

Hello There,

I just downloaded a fresh copy of the script and when I install it and try to view the database nothing is showing up, when I go to add something to the database nothing is being added.

Ive set the permissions correctly but alas no luck, this is driving me nuts as everything is how it would be, is this a bug in barrys download version?

-Sam

-- Sam (sam@hyper-zone.com), June 28, 1999

Answers

Hi,

Check in your "smart.cfg" file if your "demo.db" file is not in the same directory that your "$basepath" leeds to you will have to add it to the "demo.db" file. Example: "datafile/demo.db"

Jim

-- James L. Farmer (jim@team-blankets.com), June 29, 1999.


Well its not that I have it setup like

$basepath= "/home/htdocs/rush-interactive/vcd-import/shopcart";

$resourcedb = "demo.db";

I have all the Permissions set correctly and its still not displaying the database. I am using S-Mart Shopping Cart Script v1.9.2 any clues?

Or if someone could give me a working version of theres that would be good too :-)

-Sam

-- Sam (sam@hyper-zone.com), June 29, 1999.


Hi,

You have to set "smartadmin.cgi" to "1" to use the database.

# $useadmin = 0 (don't use it) # $useadmin = 1 (use it!) ################################################################ $useadmin = 1;

If your "demo.db" is in the same directory set it like this.

if ($useadmin eq '1') { # Where is the database file you want to use? $resourcedb = "demo.db";

Set your "tmp" directory to this.

$tmpdir = "/home/htdocs/rush-interactive/vcd-import/shopcart/tmp";

Make any changes to file names or directories these are just examples to go by.

Jim

-- James L. Farmer (jim@team-blankets.com), June 30, 1999.


Moderation questions? read the FAQ