WordPress.org

Support

Support » How-To and Troubleshooting » sidebar error?

sidebar error?

  • Hi! i wonder if anyone can help me out here, knowing ive been working on this error in my sidebar all night.
    the problem si that my links to other site´s dont show up and instead of that i´m getting te next error on my website

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1]
    SELECT cat_id, cat_name FROM

    any ideas how to solve this problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Please review the codex as the names of the category tags have changed.

    Template_Tags

    thanx for youre reply. “i tried about everything” and this dousnt seem to work aswell…

    here is some of the code where it seems to go wrong in my sidebar.php…

    <div class=”right_content”>
    <?php $link_cats = $wpdb->get_results(“SELECT cat_id, cat_name FROM $wpdb->linkcategories”);
    foreach ($link_cats as $link_cat) { ?>

    <div class=”right_header”><?php echo $link_cat->cat_name; ?></div>
    <div class=”right_content”>
    <ul style=”margin-left:20″>
    <?php get_links($link_cat->cat_id, ‘<li class=”li3″>’, ”, ‘
    ‘, FALSE, ‘id’, TRUE,
    TRUE, -1, TRUE); ?>

    </div>
    <br>

    hope someone can help me out with this,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘sidebar error?’ is closed to new replies.