3) print "Previous Article/ "; if( $autonumber < mysql_result($result,0,"maxnumber")) {print "Next Article";} ?>