$var = $editrow ; $trimmed = trim($var); //trim whitespace from the stored variable include("nwg.inc"); $rowchange = $trimmed; MYSQL_CONNECT($hostname, $username, $password) OR DIE("DB connection unavailable"); @mysql_select_db( "$dbname") or die( "Unable to select database"); $sql = "select * from $usertable where ID like \"$trimmed\" order by ID"; //$result = mysql_query($sql) or die ("cant get result"); //while ($row = mysql_fetch_array($result,MYSQL_BOTH)) { // extract($row); // $xx = $row[0]; // $image = $row[1]; // $Description = $row[2]; // } // $textfield = $row[2]; ?>