Jump to content

correct " or '


flemingmike

Recommended Posts

You need to escape double quotes used within a string delimited by double quotes, however it's easier to use single quotes to delimit the string when working with HTML:

 

echo '<td align="center"><a href="#" onmouseover="alert(\'' . $customer . '  <br />  ' . $address . '\');return false">' . $customer . '</a></td>';

Link to comment
https://forums.phpfreaks.com/topic/215340-correct-or/#findComment-1119811
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.