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;

Link to comment
https://forums.phpfreaks.com/topic/271301-concatenate-to-a-string/
Share on other sites

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.