sdaniels Posted April 12, 2006 Share Posted April 12, 2006 I dont know why im having this issue but anyhowwill someone wite an example of how to select some data from a table and echo it out. im allready connected to the databasei'v allready set up the query $query = "SELECT whatever FROM wehrever WHERE something = 'yadda' AND something else = 'yadda";@mysql_query($query);now i want to echo out just one cell from the table... what needs to be done? Quote Link to comment Share on other sites More sharing options...
bonaparte Posted April 12, 2006 Share Posted April 12, 2006 $result = mysql_query($query) ;$line = mysql_fetch_array($result, MYSQL_ASSOC);echo $line['whatever']; Quote Link to comment Share on other sites More sharing options...
BladeMetal Posted April 12, 2006 Share Posted April 12, 2006 where 'whatever' equals the field name in your database 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.