WordPress.org

Ready to get started?Download WordPress

Forums

Using a script for multiple images but run into error (4 posts)

  1. marcelvanm
    Member
    Posted 2 years ago #

    I'm running a WP with WP e-commerce and want to have multiple images for a product. (Not interested in the Gold Cart due to reading so much feedback from people with negative experiences with setting it up.)

    Now trying to use this script to have all the images for a product shown but get this error message:

    Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/mouwerik/public_html/2012/wp-content/themes/Macolinis2/wpsc-products_page.php on line 98

    What does it mean?

  2. bcworkz
    Member
    Posted 2 years ago #

    My guess is mysql_query() is returning FALSE due to some query error.

  3. marcelvanm
    Member
    Posted 2 years ago #

    OK, thanks but that's not going to get me going. I checked everything but am not sure what to check for the resource/boolean thing.

  4. bcworkz
    Member
    Posted 2 years ago #

    Insert print_r($result); at line 4. You want to get an array (resource) printed. If you just get false (boolean), then there is a problem with the query syntax. Check the returned value of wpsc_the_product_id(), it's format may be the problem. If that's not it, I'm stumped. Sorry.

Topic Closed

This topic has been closed to new replies.

About this Topic