cturner Posted October 24, 2006 Share Posted October 24, 2006 When I test the following code the rows ($row['date'] and $row['diary_entry']) don't display. Can someone please tell me why and how I can fix it? Thanks in advance.[code]require "config.php";// get the entry date$entry_date = $_GET['entry_date'];$date = date("j F Y", $entry_date);// select the diary entry for the entry_date$query = mysql_query("SELECT * FROM `diary_contents` WHERE `date` = '$date' LIMIT 1") or die ("Could not query because: ".mysql_error());// display the diary entries for the entry date// display the selected dateecho "Posted on: ".$date;// display the selected diary entrywhile($row = mysql_fetch_array($query)){ // Build your formatted results here. echo $row['date']; echo $row['diary_entry'];}[/code] Quote Link to comment Share on other sites More sharing options...
cturner Posted October 24, 2006 Author Share Posted October 24, 2006 Sorry I have solved the problem. 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.