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; Quote Link to comment 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']; Quote Link to comment Share on other sites More sharing options...
RON_ron Posted November 16, 2010 Author Share Posted November 16, 2010 Thanks mate! 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.