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! Quote Link to comment 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']) . " Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted February 14, 2007 Share Posted February 14, 2007 No Prob Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.