shyam13 Posted July 23, 2012 Share Posted July 23, 2012 I have created a new mysql query but when I run the code on my browser and I check the inspect element and It gives an error, the error is a 500 internal server problem. here is my code: <div class='wrapper'> <div class='menu'> <ul id="menu"> <?php $first = mysql::select('menu','menu_id','menu_name',condition::where('menu_pid')->isnull())->execute(); foreach($first->data as $row){ echo $row['menu_name']; $second = mysql::select('menu','menu_id','menu_name',condition::where('menu_pid')->is($row['menu_id']))->execute(); } ?> </ul> please help Thank you Shyam Quote Link to comment https://forums.phpfreaks.com/topic/266113-mysql-error-please-help/ Share on other sites More sharing options...
jazzman1 Posted July 23, 2012 Share Posted July 23, 2012 Does this query come from any php framework or not ? Quote Link to comment https://forums.phpfreaks.com/topic/266113-mysql-error-please-help/#findComment-1363671 Share on other sites More sharing options...
shyam13 Posted July 23, 2012 Author Share Posted July 23, 2012 No its does not come from a framework. Thank You Shyam Quote Link to comment https://forums.phpfreaks.com/topic/266113-mysql-error-please-help/#findComment-1363674 Share on other sites More sharing options...
xyph Posted July 23, 2012 Share Posted July 23, 2012 So you've designed these classes yourself? Since the majority of the code being executed doesn't actually exist in your OP, we can't really help beyond suggesting generic reasons why your server might throw 500. These can be found on Google, as well. The first thing I'd do is check out your error logs. I've seen instances where the error log grew too large, and trying to write to it was causing the 500. It could be due to strict permissions enforced by suPHP, or many other potential misconfiguration. Quote Link to comment https://forums.phpfreaks.com/topic/266113-mysql-error-please-help/#findComment-1363687 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.