JamesThePanda Posted March 7, 2011 Share Posted March 7, 2011 Hi Im just working on a wordpress pugin at the moment and Iw as trying out this piece of code $mylink = $wpdb->get_row("SELECT * FROM $wpdb->testtable WHERE id = 1"); echo $mylink->id ; there is data in the table there is an id equal to one but it not coming up with anything I tried it with anouther pable and it works fine I can for example $mylink = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE id = 1"); echo $mylink->post_content ; That comes up fine with the data But the first one I dont know why its not working can anyone help Thanks James Quote Link to comment Share on other sites More sharing options...
JamesThePanda Posted March 7, 2011 Author Share Posted March 7, 2011 ALso i ran a check and it not coming up as a object or an array Quote Link to comment Share on other sites More sharing options...
JamesThePanda Posted March 7, 2011 Author Share Posted March 7, 2011 im still no futher on this if anyone could help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.