[PHP-WIN] eregi_replace problems

2002-05-22 Thread Zac Hillier
I'm trying to replace values within a string with a value looked up from a database. I have a function that looks up the value in the database for me but I'm having trouble passing the value to the function because of the backslashes, is there a way around this? Code: $cntnt = eregi_replace(

Re: [PHP-WIN] R: [PHP-WIN] ASP and PHP

2002-05-15 Thread Zac Hillier
PHP contains many precompiled functions which you have to discover and then create by hand in asp. eg htmlspecialchars PLUS Many more Zac -Messaggio originale- Da: "Spychala, Wojciech" [mailto:[EMAIL PROTECTED]] Inviato: mercoledi 15 maggio 2002 15.39 A: [EMAIL PROTECTED] Ogg

[PHP-WIN] unexpected $ ???

2002-05-06 Thread Zac Hillier
Hi All, I'm new to this and have a strange error message - can anyone shed some light? I have included a file into my main page that uses php to build an area of html and javascript. I always get this error: Parse error: parse error, unexpected $ in d:\php-dev\includes\frmBuilder.php on line

[PHP-WIN] redirection help

2002-05-04 Thread Zac Hillier
Hi, Have been coding in asp for the past 18 months but have now decided to move our site to php and mysql. In asp we used a function response.redirect to send the user to another page as required, is there a similar function in php that can work from within side the page rather than the heade