Results 1 to 5 of 5
  1. #1

    PHP Syntax Error, Probably Simple Fix Help!!

    <?php
    /* --------------------------------------------------------------------------------------------- */
    /* ------------ Your slideshow content for this Frontpage Slideshow 1.7.x instance. ------------ */
    /* --------------------------------------------------------------------------------------------- */

    /*
    *** TIP ***
    -----------
    To add more slides to your FPSS slideshow, simple copy/paste and then change per your needs the data blocks marked with "slide elements".
    */

    // --- Start slide list ---

    // slide elements
    array(
    "slidelink" => "http://www.wrestling-edge.com/wwe-news/wwe-working-on-the-undertaker-movie.html",
    "text" => "Find out what WWE is planning for The Undertaker.",
    "title" => "<font color=\"#ffffff\">Major Undertaker News</font>",
    "slideimage" => "takerfeud.jpg"
    ),

    // slide elements
    array(
    "slidelink" => "http://www.wrestling-edge.com/wwe-news/spoiler-plans-for-big-main-event-survivor-series-ppv-matches.html",
    "text" => "Big *Spoilers* on planned Survivor Series matches.",
    "title" => "<font color=\"#ffffff\">SS Elimination Matches</font>",
    "slideimage" => "batistass.jpg"
    ),

    // slide elements
    array(
    "slidelink" => "http://www.wrestling-edge.com/wwe-news/full-listing-for-wwes-world-heavyweight-championship-dvd-set.html",
    "text" => "Get the scoop on WWE's upcoming World Title set.",
    "title" => "<font color=\"#ffffff\">World Title History</font>",
    "slideimage" => "worldtitle.jpg"
    ),

    $slides = array(

    // slide elements
    array(
    "slidelink" => "http://www.wrestling-edge.com/wwe-news/updates-on-edges-wwe-return-and-wwes-hulk-hogan-dvd.html",
    "text" => "Get the latest news on Edge's return to WWE.",
    "title" => "<font color=\"#ffffff\">Edge's Mania Return</font>",
    "slideimage" => "edgereturn.jpg"
    ),

    // slide elements
    array(
    "slidelink" => "http://www.wrestling-edge.com/tna-news/official-announcement-on-tna-signing-hulk-hogan-promo-photos-included.html",
    "text" => "Get the official announcement and Hogan/TNA promo pics!",
    "title" => "<font color=\"#ffffff\">TNA Signs Hulk Hogan</font>",
    "slideimage" => "hogantna.jpg"
    ),


    // slide elements
    array(
    "slidelink" => "http://www.wrestling-edge.com/wwe-news/update-on-shawn-michaels-future-in-wwe.html",
    "text" => "Get the latest on Shawn Michaels' future in wrestling.",
    "title" => "<font color=\"#ffffff\">HBK Retirement Update</font>",
    "slideimage" => "hbkretire.jpg"
    ),

    // slide elements
    array(
    "slidelink" => "http://www.wrestling-edge.com/wwe-news/reminder-join-wrestling-edge-for-our-live-wwe-bragging-rights-coverage.html",
    "text" => "Get all the details on what happened on PPV.",
    "title" => "<font color=\"#ffffff\">WWE Bragging Rights Report</font>",
    "slideimage" => "br.jpg"
    ),





    // --- End slide list ---
    );

    ?>



    The ABOVE should work, but error:

    Parse error: syntax error, unexpected ',' in /*/*/*/wordpress/fpss/slideshows/myslideshow/data.php on line 20


    How to fix please?
    Last edited by AmishPatel; 11-03-2009 at 01:26 PM.

  2. #2
    Join Date
    Oct 2009
    Posts
    856
    Uhm, you seem to be trying to make a two-dimensional array (array containing arrays), but don't have a starting array( for the first array dimension.

  3. #3
    Yeah, looks like you need to add the slidelist array back in

  4. #4
    Join Date
    Jun 2009
    Posts
    35
    Your first three array elements are not inside $slides array.If it is the part of $slides array write them inside the $slides array declaration. Hope it helps.
    Neseema M M
    Ezeelogin - The ultimate multiple server administration software.
    * Parallel shell * rm -rf protection * SSH logging * automated password changes * encrypted storage *
    AdMod.com - Delivering innovative web hosting solutions

  5. #5
    Join Date
    Mar 2009
    Posts
    2,218
    You asked this question three weeks ago on Sitepoint.com.

    It was answered there within an hour by Dan Grossman; was the reply inadequate?

    Code:
    $slides = array(

    This used to be the first line of code before you started copy/pasting things, and it still needs to be.

    Code:
    
    ),
    
    
    // --- End slide list ---
    );
    Should have no comma after the last element in an array

Similar Threads

  1. Parse error: syntax error,is this mysql problem,plz?
    By skyaus in forum Hosting Security and Technology
    Replies: 5
    Last Post: 10-25-2008, 09:31 PM
  2. Parse error: syntax error, unexpected ';' in ... on line 47
    By Riche_Angelus in forum Programming Discussion
    Replies: 3
    Last Post: 04-20-2008, 12:26 AM
  3. Syntax Error Please help!
    By kayz in forum Programming Discussion
    Replies: 5
    Last Post: 01-20-2006, 07:44 PM
  4. You have an error in your SQL syntax
    By cannibal in forum Hosting Security and Technology
    Replies: 2
    Last Post: 07-31-2005, 07:29 PM

Posting Permissions

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