RON_ron Posted November 10, 2010 Share Posted November 10, 2010 how do I call only a single column in a MySQL? This is not working. $SomeVar = $_POST['finco']; $query = "SELECT * FROM idb WHERE name = '".$SomeVar."'"; $results = mysql_query($query); $psend = $results["fincos"]; echo($psend); Quote Link to comment https://forums.phpfreaks.com/topic/218269-pull-a-single-column/ Share on other sites More sharing options...
Adam Posted November 10, 2010 Share Posted November 10, 2010 You can use mysql_result, but I'd recommend not using "*" if you only need one field. Quote Link to comment https://forums.phpfreaks.com/topic/218269-pull-a-single-column/#findComment-1132556 Share on other sites More sharing options...
RON_ron Posted November 10, 2010 Author Share Posted November 10, 2010 Thanks Mr.Adam. Quote Link to comment https://forums.phpfreaks.com/topic/218269-pull-a-single-column/#findComment-1132563 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.