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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.