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. Link to comment https://forums.phpfreaks.com/topic/47562-query-not-working-but-it-is-fine-s/page/2/#findComment-232467 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.. Link to comment https://forums.phpfreaks.com/topic/47562-query-not-working-but-it-is-fine-s/page/2/#findComment-232471 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 } Link to comment https://forums.phpfreaks.com/topic/47562-query-not-working-but-it-is-fine-s/page/2/#findComment-232490 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.