Can't get the script to show any items

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

I'm giving the script another try at www.nmcomicempire.com/cgi-bin/S-Mart.cgi

But I'm still having problems . . namely, none of the items I put in the database (through smartamin.cgi) are showing up.

Originally, I was going to use this script in the HTML format, but my client has been adding *tons* more stuff to his site, and I'd rather just the db functions.

If someone can help me look at this, I'd greatly appreciate it . . I'm stuck, and have no idea where to go. I think I have all the permissions set correctly (per the documentation, and the demo.db is set to chmod 777).

TIA for any help. Pete Salas, Jr.

-- Pete Salas, Jr. (petejr@bmccomp.com), September 03, 1999

Answers

Hi,

Your basepath is set wrong.

# what is the base path to the directory where the files are (header,footer, order form)? $basepath= "/data1/hypermart.net/rockwren/cgi-bin/html";

# what are your header and footer HTML docs? $header = "header.html"; $footer = "footer.html";

# where is the order form HTML doc? $order = "order.html";

Change it to this.

# what is the base path to the directory where the files are (header,footer, order form)? $basepath= "/data1/hypermart.net/rockwren/cgi-bin";

# what are your header and footer HTML docs? $header = "html/header.html"; $footer = "html/footer.html";

# where is the order form HTML doc? $order = "html/order.html";

You have to set the basepath to the same directory that points to the "smart.cgi".

Jim

-- James L. Farmer (jim@team-blankets.com), September 04, 1999.


Moderation questions? read the FAQ