Public Function HelloWorld() As String
Dim R As StringR =
"SELECT * FROM PanHotelRate" Return R End Function
i wanna return information from my database wif the above codes but there's an error
i tink i noe the error it is this:
Dim R As String
i noe i should not declare it as String but i donnoe any other alternative
what should i declare R as

web service error
Recency
You need to plug in a bit of ADO.NET code in your function to do the actual look up.
http://samples.gotdotnet.com/quickstart/howto/doc/adoplus/ExecuteCommand.aspx
You can then return a DataSet/ string as appropriate.