How do I write:
$count = mysql_num_rows($result);
print "<h3>$count metal prices available</h3>";
to a file, index.php?
I've tried:
echo "$count = mysql_num_rows($result);
print "<h3>$count metal prices available</h3>";" > index.php
but I don't understand how to escape the double quotes that are in the input.
Would it be better to use something other than echo? I'd rather not rewrite the whole PHP script if possible (it's longer than the 2 lines given in the example!).