Dysan Posted November 17, 2007 Share Posted November 17, 2007 Why doesn't the contents of the "title" field get displayed on the screen? <?php $con = mysql_connect("localhost","ODBC",""); if (!$con) { die(mysql_error()); } mysql_select_db("MP3", $con); $result = mysql_query("SELECT * FROM books"); echo $result['title']; mysql_close($con); ?> Quote Link to comment https://forums.phpfreaks.com/topic/77678-doesnt-work-why/ Share on other sites More sharing options...
marcus Posted November 17, 2007 Share Posted November 17, 2007 $row = mysql_fetch_assoc($result); echo $row['title']; Quote Link to comment https://forums.phpfreaks.com/topic/77678-doesnt-work-why/#findComment-393236 Share on other sites More sharing options...
coder_ Posted November 17, 2007 Share Posted November 17, 2007 Do you get any error?? Quote Link to comment https://forums.phpfreaks.com/topic/77678-doesnt-work-why/#findComment-393240 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.