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); ?> 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']; 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?? Link to comment https://forums.phpfreaks.com/topic/77678-doesnt-work-why/#findComment-393240 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.