boo_lolly Posted April 18, 2007 Share Posted April 18, 2007 dude, your db structure is NOT fine. i don't care what details you can't illustrate... your db structure is messed up. i can't help you dig yourself into a deeper hole. however, you may be able to apply my code to your db structure... i pretty much just omitted your 'last_post' column, practically everything else is the same. why don't you try that and let us know how it works out. Quote Link to comment Share on other sites More sharing options...
rockinaway Posted April 18, 2007 Author Share Posted April 18, 2007 I will have to check with the lead developer before I do that.. Quote Link to comment Share on other sites More sharing options...
HaLo2FrEeEk Posted April 18, 2007 Share Posted April 18, 2007 if(isset($_GET['file']) { $file = $_GET['file']; $query = mysql_query('SELECT parent, last_post FROM test_boards WHERE id = \''.$file.'\'')or die("Error:" . mysql_error()); $results = mysql_results($query, 0); } else { // some code is $_GET['file'] is not set } 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.