Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-29-2010, 07:49 PM   PM User | #1
Syrehn
New Coder

 
Join Date: Sep 2009
Posts: 75
Thanks: 1
Thanked 0 Times in 0 Posts
Syrehn is an unknown quantity at this point
help with php script?

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:

http://www.michelhiemstra.nl/blog/ig...op-portal-v20/

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

Code:
– 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`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;

–
– 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:

http://www.michelhiemstra.nl/scripts/jsportal/index.php
Syrehn is offline   Reply With Quote
Old 01-29-2010, 09:10 PM   PM User | #2
Syrehn
New Coder

 
Join Date: Sep 2009
Posts: 75
Thanks: 1
Thanked 0 Times in 0 Posts
Syrehn is an unknown quantity at this point
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?
Syrehn is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:48 AM.


Advertisement
Log in to turn off these ads.