if(request(\"action\") =\"hent\") then SQL = \"select * from user\" Set row = Conn.execute( SQL ) else if(request(\"action\") =\"ret\") then
SQL = \"update user set navn = \'mads2000\' where id =1\" Conn.execute( SQL )
else if(request(\"action\") =\"slet\") then SQL = \"Delete from user where id =10\" conn.execute( SQL ) else if(request(\"action\") =\"skriv\") then set row = server.createobject(\"ADODB.Recordset\") SQL = \"select * from user\" row.open SQL,1,3 row.addnew row(\"navn\") = \"mads\" row.update row.close else
Response.write(\"Du mangler at skrive en funktion\") end if end if end if end if conn.close set conn = nothing set row = nothing %>
Jeg ville nu ellers lave noget i stilen med. (Den er ikke testet så der er nok en fejl eller to)
select case lcase(request(\"action\")) case \"hent\" SQL = \"select * from user\" Set row = Conn.execute( SQL ) case \"ret\" SQL = \"update user set navn = \'mads2000\' where id =1\" Conn.execute( SQL ) case \"slet\" SQL = \"Delete from user where id =10\" conn.execute( SQL ) case \"skriv\" set row = server.createobject(\"ADODB.Recordset\") SQL = \"select * from user\" row.open SQL,1,3 row.addnew row(\"navn\") = \"mads\" row.update row.close case else
Response.write(\"Du mangler at skrive en funktion\") end select
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.