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 Link to comment https://forums.phpfreaks.com/topic/229904-problem-with-query/ 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 Link to comment https://forums.phpfreaks.com/topic/229904-problem-with-query/#findComment-1184137 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 Link to comment https://forums.phpfreaks.com/topic/229904-problem-with-query/#findComment-1184236 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.