Here is an example of my code:
$text = "Hi ##firstname## ##lastname##,";
$text = ereg_replace("##([^#]+)##", $row->."\\1", $text);
$row-> is a result of using mysql_fetch_object. I would expect it to
replace ##firstname## and ##lastname## with the value of
$row->firstname and $row->lastname respectively... but nothing
happens. I presume it is a variable problem...
Can anyone help with this code?
Matthew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]