Jump to content

What is the best way to strip slashes from this ouput


simcoweb

Recommended Posts

I have the results from a query set up like this:

 

<?php
  while ($row = mysql_fetch_array($results)) {
  echo "<table align='center' border='1' cellpadding='4' cellspacing='0' style='border-collapse: collapse' width='600' bordercolorlight='#CCCCCC' bordercolordark='#CCCCCC'>
  <tr>
    <td colspan='2' bgcolor='#E0E1E8'><font face='Verdana'>Each step for $date 
    trades is outlined below. Follow each step precisely.</font></td>
  </tr>
  <tr>
    <td width='8%'><b><font face='Verdana' size='2'>Step One:</font></b></td>
    <td width='92%' style='font-family: Verdana; color: #333333; font-size: 10pt'>" . $row['step1'] . "</td>
  </tr>
  <tr>
    <td width='8%'><b><font face='Verdana' size='2'>Step Two:</font></b></td>
    <td width='92%' style='font-family: Verdana; color: #333333; font-size: 10pt'>" . $row['step2'] . "</td>
  </tr>
  <tr>
    <td width='8%'><b><font face='Verdana' size='2'>Step Three:</font></b></td>
    <td width='92%' style='font-family: Verdana; color: #333333; font-size: 10pt'>" . $row['step3'] . "</td>
  </tr>
  <tr>
    <td width='8%'><b><font face='Verdana' size='2'>Step Four:</font></b></td>
    <td width='92%' style='font-family: Verdana; color: #333333; font-size: 10pt'>" . $row['step4'] . "</td>
  </tr>
  <tr>
    <td width='8%'><b><font face='Verdana' size='2'>Details: </font></b></td>
    <td width='92%' style='font-family: Verdana; color: #333333; font-size: 10pt'>" . $row['details'] . "</td>
  </tr>
</table><br>\n";
}
?>

 

I need to strip the backslashes out of the results. Not sure of the proper method and syntax. Any help/guidance would be appreciated. Thanks!

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.