RON_ron Posted November 16, 2010 Share Posted November 16, 2010 How to pull just I record of a column out of the 20 columns? This is not showing the results. $SomeVar = 'pets'; $query = "SELECT field1 FROM db1 WHERE id1 = '".$SomeVar."'"; $results=mysql_query($link); echo $link; Link to comment https://forums.phpfreaks.com/topic/218871-get-single-record/ Share on other sites More sharing options...
AbraCadaver Posted November 16, 2010 Share Posted November 16, 2010 Check out a mysql tutorial: $results = mysql_query($query); $row = mysql_fetch_assoc($results); echo $row['field1']; Link to comment https://forums.phpfreaks.com/topic/218871-get-single-record/#findComment-1135127 Share on other sites More sharing options...
RON_ron Posted November 16, 2010 Author Share Posted November 16, 2010 Thanks mate! Link to comment https://forums.phpfreaks.com/topic/218871-get-single-record/#findComment-1135188 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.