problem about nextgen-gallery-Collection of common programming errors
brasofilo
php sql wordpress syntax nextgen-gallery
I am trying to get the NextGen gallery Id dynamically and getting SQL syntax error#1064 – You have an error in your SQL syntaxHave a look on below code where I am making mistake<?php global $wpdb; global $post; $galleryid = get_post_meta( $post->ID, ‘image_gallery’, true ); $pictures=$wpdb->get_results(“SELECT * FROM wp_ngg_pictures WHERE galleryid=’$galleryid'”); ?>Or may be I am doing it wrong way?
Web site is in building
I discovery a place to host code、demo、 blog and websites.
Site access is fast but not money