Ok i put this in

PHP Code:
    <input type="text" name="pascref" size="20" maxlenght="20" value="
<?php  
  $query1 
"SELECT max(pasc_id) + 1 FROM dss_returns"
  
$result1 = @mysql_query ($query1);  
  echo 
$result1
?>
    " />
but i am getting this in my box.. "Resource id #4"
I dont know why its getting that