View Full Version : help with php script?

01-29-2010, 07:49 PM
I think I need some help and I'm not sure if this is the right place to post this. anyway, here it goes.

I'm trying to test out the following script on my local setup:


I believe I have figured out the mysql part, i had to insert the following:

Table structure for table `blocks`

CREATE TABLE `blocks` (
`unique_id` int(11) NOT NULL auto_increment,
`block_id` varchar(255) NOT NULL default ,
`column_id` varchar(255) NOT NULL default ,
`order_id` int(11) NOT NULL default 0′,
PRIMARY KEY (`unique_id`)

Dumping data for table `blocks`

INSERT INTO `blocks`
VALUES ( 1, 'block-1', 'column-1', 0 ) ;# 1 row(s) affected.
INSERT INTO `blocks`
VALUES ( 2, 'block-3', 'column-2', 0 ) ;# 1 row(s) affected.
INSERT INTO `blocks`
VALUES ( 3, 'block-2', 'column-3', 0 ) ;# 1 row(s) affected.
INSERT INTO `blocks`
VALUES ( 4, 'block-4', 'column-2', 1 ) ;# 1 row(s) affected.

i believe that is functioning properly but for some reason I'm not getting the blocks showing up on the index page. it's just blank in the space they should be.

here is what it should look like:


01-29-2010, 09:10 PM
ok. i think i got it. it doesn't appear to work if testing locally.

does anyone have any suggestions how to implement saving the changes with cookies?