Search found 2 matches

by spikeZ
Mon Aug 07, 2006 4:07 am
Forum: PHP - Code
Topic: Replace character in block of text
Replies: 1
Views: 145

You have mis-escaped the quotes, also if you are only replacing one character there is no need for an array setup: <?php $code=$_POST["code"]; if ($code != "") { $replace = str_replace(" \"", " \' ", $code); echo "<textarea cols='40' rows='10'>$repla...
by spikeZ
Tue Jun 06, 2006 3:11 pm
Forum: PHP - Code
Topic: mail()
Replies: 11
Views: 955

Howdy folks, The problem is more likely to be the fact that you have defined a result handler to the query twice. Once right after the query and again in the loop. This will stop the code from running the second query and therfore won't populate the $email_adrr variable - hence the error of paramete...