please look at http://www.rupstar.co.uk/admin.php
you will see that evertime i recall data, I more spaces are inserted into the textarea before my data.
Anyone got a solution?
this is the code to write to the database:
<?php
$db = "admin";
$link = mysql_connect( "localhost:/users/rupertbj/domains/rupstar.co.uk/sql/mysql.sock", "root" );
mysql_select_db( $db, $link ) or die( "Couldn't open $db: ".mysql_error() );
$sql = "REPLACE INTO adminTable VALUES ( '1', '$introduction', '$whatsnew1', '$whatsnew2', '$whatsnew3', '$whatsnew4' )";
mysql_query( $sql, $link );
mysql_close( $link );
?>
and this is the code to display in the textarea:
<textarea name="introduction" cols=40 rows=5 wrap="VIRTUAL">
<?php echo $introduction ?>
</textarea>