Jump to content

MySql Error, Please Help


shyam13

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/266113-mysql-error-please-help/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.