Jump to content

problem in fetching data from wordpess database


nitesh
 Share

Recommended Posts

Hi every oneIam creating a word-press plugin everything is working fine plug is automatic creating database table but when iam fetching data it's not working plug in database detailstable name igdatabase1 colum name = ig_id2 colum name = ig_head3 colum name = ig_head iam using the below php code to output the data form my plugin not showing in my page <?php $mylink = $wpdb->get_row("SELECT * FROM $wpdb->igdatabase WHERE ig_id = 1");echo $mylink->ig_paragraph ;?> aiam using the below the same php code with wordpress databse is working absolutly fine<?php $mylink = $wpdb->get_row("SELECT * FROM $wpdb->links WHERE link_id = 1");echo $mylink->link_name ; ?> Need help

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...