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!

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.