Hi all

I'm having trouble displaying some content into a multiline form. Some part
of the field's data seems to be missing. I'm using the following code:
<?php
$query = "select * from sections where id='".$sectionid."'";

$result = pg_exec( $db , $query );
$r = pg_fetch_row($result, 0);

$description = $r[1];
$button_text = $r[3];
$content = '     '.$r[4].'     ';
$visible = $r[5];

echo "<p><B>Section: ".$r[0]."<B></p>";
echo "<FORM action=\"updatesite.php?
op=section&sectionid=$sectionid&sessionid=$sessionid\" method=POST>";
echo "<P>Description <br><input length=50 type=text name=\"description\"
value='$description' > </P>";
echo "<P>Button text: <br><input length=20 type=text name=\"button_text\"
value='$button_text' > </P>";
echo "<P>Contents:  <br><textarea length =8000 cols=50 rows=20
name=\"content\" value=".\
$content." > </textarea></P>";
echo "<P><input type =submit value =\"Gravar\"></P>";
echo "</FORM>";

The variable $content should contain the correct data, but it cuts a part of
the beggining and some part of the end. I think it has nothing to do with
the fields size.

Can anyone help me with this?
If it helps, i'm using php3 and postgresql6

Thank in advance
Paulo Nunes





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to