Hi All,
I am having an issue with PHP and HTML mixed code.
I tried to write this line to check and see if the product listed has info or not. If no, do not display the text, if yes, then display the text.
Here is the code:
<?PHP $s2Input=wordwrapline(html_entity_decode(mysql_result($result,0,"prodDetails")),550);
$prodDetails=str_replace('</p><p>',"</p><p>\r\n",$s2Input);
if mysql_result($prodDetails,0,"prodDetails")!=""){
echo $prodDetails;
}
?>
Obviously, it is not correct. I am not sure why..
This code is on line 102 and here is the complete error:
"Parse error: parse error, unexpected T_STRING, expecting '(' in /home/inthecla/public_html/noFrames/products/product_don2.php on line 102"
Thanks in advance,
Don