simcoweb Posted February 14, 2007 Share Posted February 14, 2007 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 https://forums.phpfreaks.com/topic/38518-what-is-the-best-way-to-strip-slashes-from-this-ouput/ Share on other sites More sharing options...
The Little Guy Posted February 14, 2007 Share Posted February 14, 2007 " . stripslashes($row['step1']) . " " . stripslashes($row['step2']) . " " . stripslashes($row['step3']) . " " . stripslashes($row['step4']) . " Link to comment https://forums.phpfreaks.com/topic/38518-what-is-the-best-way-to-strip-slashes-from-this-ouput/#findComment-184832 Share on other sites More sharing options...
simcoweb Posted February 14, 2007 Author Share Posted February 14, 2007 Shazaam! Worked like a charm. Thanks! I had the stripslashes outside the quotes which basically just echoed it instead of stripping the slashes. Learn more each day Link to comment https://forums.phpfreaks.com/topic/38518-what-is-the-best-way-to-strip-slashes-from-this-ouput/#findComment-184838 Share on other sites More sharing options...
The Little Guy Posted February 14, 2007 Share Posted February 14, 2007 No Prob Link to comment https://forums.phpfreaks.com/topic/38518-what-is-the-best-way-to-strip-slashes-from-this-ouput/#findComment-184839 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.