Hello Everyone...
i have one issue.please help me
My name {is} and.i {am} a php {developer}..ho w to display value within brecket '{.}'... also that value will be used to fetch value from the database
i use below code but it is display only one value...
But I want to use all the value to fetch the data from database..so how to display multiple value...
sorry for my worst english...pleas e Help me...
Thanks in advance..
Irfan Modan
i have one issue.please help me
My name {is} and.i {am} a php {developer}..ho w to display value within brecket '{.}'... also that value will be used to fetch value from the database
i use below code but it is display only one value...
Code:
$message="My name {is} abd.i {am} a php {developer}.";
preg_match("/\{([^{}]+)\}/", $message,$matches);
$find=$matches[0];
$path=getonefielddata("select path from tbl_plugin where field='$find'");
return str_replace("$find",$path,$message);
sorry for my worst english...pleas e Help me...
Thanks in advance..
Irfan Modan
Comment