To all guru
I have a problem and im not familiar in regular expression can anyone help me .
here is the problem in my code
$sql=mysql_query("select * from products ");
while ($result=mysql_fetch_object($sql))
{
$productname=$result->prod_name;
$prod_id=$result->prod_id;
if preg_match ( "{whatever the content }",$productname)
preg_replace(" {whatever the content}"," ",$productname);
echo $productname."<br>"
}
the problem is in the preg_match i dont know what to do please help me out