Jump to content

Concatenate '/' To A String


rmmorejo

Recommended Posts

Hello everyone. I am new to AJAX. I have this piece of code that works fine with the exception that it does not print the image I am trying to print. When I view the code on the browser, I realize that the <img> tag does not get properly terminated by ...... />. The forward slash does not show up regardless of the fact that I put it in while preparing the string to be passed back to AJAX.

 

This is the partial code I am using to return the output to AJAX.

Can anyone help?

Thanks!

 

 

 

$caseLoadData = "<span class='treeData'>";

 

$MySQLConn->query = ".... some query returning certain fields ..."

$MySQLConn->RunQuery();

 

while ( $row = $MySQLConn->fetchRow() ) { // Building the rest list!

 

$fullName = $row['last_name'].', '.$row['first_name'].' '.$row['middle_name'];

 

$caseLoadData .= "<img src=\"expand.png\" width=\"9\" height=\"9\" onclick=\"javascript:expandClient(0, '".$row['... some data ...']."', 'undefined');\" alt=\"none\" />

<label title=\"".$row['... some data ...']."\"> ".$fullName."</label><br>";

}

$caseLoadData .= "</span>";

echo $caseLoadData;

Edited by rmmorejo
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.