Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2009
    Posts
    75
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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

  • #2
    New Coder
    Join Date
    Sep 2009
    Posts
    75
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •