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); 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. 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. Link to comment https://forums.phpfreaks.com/topic/218269-pull-a-single-column/#findComment-1132563 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.