Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8054213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:05:56+00:00 2026-06-05T08:05:56+00:00

I am fighting with a jquery load thing that is supposed to load some

  • 0

I am fighting with a jquery load thing that is supposed to load some comments into my comments area.

I use this

$("#designCommentsBox").load("pullcomment.php");

and my pullcomment.php looks like this:

<?php
define("INCLUDE_DIR", "includes/classes");

/* Autoload classes when used */
function __autoload($class_name) { include(INCLUDE_DIR.'/class.'. strtolower($class_name) . '.php'); } 

SQLHandling::SQLconnect();
Designs::GetCommentsForDesign(1); //Default value for testing
?>

And the function GetCommentsForDesign is this:

function GetCommentsForDesign($design_id) {
        $sql = SQLHandling::selectSQL('*', 'tdic_comments', 'design_id = '. $design_id .'');
        $result = SQLHandling::SQLquery($sql);            

        $markers = array();


        $markers["###NUM_COMMENTS###"] = mysql_num_rows($result);

        if(mysql_num_rows($result) < 1) {
            $markers["###COMMENTS###"] = "No comments";           
        } else { 

        while($row = SQLHandling::SQLfetch($result)) {
            $markers["###COMMENTS###"] = '<div class="commentBox">';
                $markers["###COMMENTS###"] .= '<div class="commentLeft"><img src="ss.jpg" /></div>';
                $markers["###COMMENTS###"] .= '<div class="commentRight">';

                    if(!empty($row["website"])) {
                        $markers["###COMMENTS###"] .= '<span class="commentPoster"><a href="'. $row["website"] .'" target="_blank" rel="external nofollow">'. $row["name"] .'</a></span>';    
                    } else {
                        $markers["###COMMENTS###"] .= '<span class="commentPoster">'. $row["name"] .'</span>'; 
                    }
                    $markers["###COMMENTS###"] .= '<br /><span class="commentDate">'. date('d-m-Y', $row["date_added"]) .'</span>';    
                    $markers["###COMMENTS###"] .= '<p class="comment">'. $row["comment"] .'</p>';
                $markers["###COMMENTS###"] .= '</div>';
            $markers["###COMMENTS###"] .= '</div>';
        }
        }
        Main::GetMarkers($markers);

    }

The load is supposed to load all comments into to this but I am not getting anything

<div id="designCommentsBox">
</div>

What is weird that if I f.x. do an echo $row["comment"] inside the GetCommentsForDesign function, that comment do get printed out.

Can anyone see what I am doing wrong?

A secondary question
How can I pass an URL parameter into to load? Like this

$("#designCommentsBox").load("pullcomment.php?designid=1"); //From the URL

And then pass that param into the function?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:05:57+00:00Added an answer on June 5, 2026 at 8:05 am

    Nevermind! I had some bad javascript further dowm my site! With that gone, everything is in order! Sorry!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Still fighting with templates. In this example, despite the fact that is copied straight
I have been fighting with this for quite some time and have found a
Sorry if this was covered before in some way that I wasn't able to
I've been fighting with this for the past few days, and am hoping that
I am fighting with a very strange javascript behavior on a jQuery UI widget
I'm fighting with this strange problem, where recvfrom returns only when it catches broadcast
I have been fighting this for a while, and I just cannot make a
I've been fighting with jQuery all night and getting quite frustrated here, so forgive
After fighting several versions of the CoreKeyGen created by some minamoto guy, a new
I've been fighting this for a while, seems I'm close but not quite there.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.