|
Posted by stevek on 11/15/41 11:47
<?php
$conn = @mysql_connect( "campania", "sfk", "" )
or die( "Sorry - could not connect to MySQL" );
echo "$conn\n";
//$rs1 = @mysql_create_db( $_REQUEST['db'] );
echo "This spans\nmultiple lines. The newlines will be\noutput as well.";
?>
produces......
Resource id #2 This spans multiple lines. The newlines will be output as
well.
Alan Little wrote:
> Carved in mystic runes upon the very living rock, the last words of
> stevek of comp.lang.php make plain:
>
>> stevek wrote:
>>> Following code does not produce any new lines. Any ideas.
>>>
>>> echo "This spans\multiple lines. The newlines will be\noutput as
>>> well.";
>> Sorry ... spell checker corrected some.
>>
>> echo "This spans\nmultiple lines. The newlines will be\noutput as
>> well.";
>
> So, you're saying that this will output the literal string:
>
> This spans\nmultiple lines. The newlines will be\noutput as well.
>
> Is the bit you posted above a direct cut-and-paste from your script? If
> not, check that you are in fact using double quotes and not single.
>
Navigation:
[Reply to this message]
|