Quote:
i don't know what to doooo
Read the error message and your code!
You are told that 'Procedure or function 'updat' expects parameter '
@username', which was not supplied.'
which means that
CREATE PROCEDURE [dbo].[Updat]
@mode2 nvarchar(10),
@Timein varchar(50),
@Username nvarchar(50)
As
If @mode2 = 'Update'
BEGIN
UPDATE Login1
SET
Username = @Username,
Timein = @Timein
END
have no value because it is not provided in calling code.
We can't do anything because we don't know what you want to do.
make sure the procedure is not called from another place where the parameter is missing.