Here is my problem, I am taking two fields and adding them together using the string functions: str_replace() and substr().
It is printing out with quotations. I am not sure how to get it so the quotes aren't there.
This is how it prints on screen: ex:
• "AUTOMATIC TRANSMISSION
• LEATHER SEATS
• AIR CONDITIONING
• POWER STEERING
• POWER BRAKES
• POWER WINDOWS
• POWER LOCKS"
here is the code, can anyone let me know if they know how to fix this.
Thanks for you time..
$query = "SELECT * FROM .......
if ($result = mysql_query($query, $connection)) {
while ($a_row = mysql_fetch_array($result)) {
if ($a_row['description1'] != ""){
$options1 = "• ".$a_row['description1']."";
$options2 = $a_row['description2'];
$options2 = substr("$options2", 0, -1);
$options2 = substr("$options2", 1);
$newOptions = $options1.$options2;
$newOptions1 = str_replace(",", "<br><br> • ", $newOptions);
} else {
$newOptions1 = "<center>NO OPTIONS<br> CURRENTLY LISTED</center>";
}
echo "".$newOptions1."";
}
}