Question : Can anybody see why this isnt changing the data in my database...

I am sure it is somehting stupid...


1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Me.Visible = False

        Me.RecordsCountTableAdapter.Fill(Me.DataSet1.RecordsCount)
        Dim x As Integer = 1

        Do While x <= DataSet1.RecordsCount.Item(0).Column1

            Me.ClientsTableAdapter.Fill(Me.DataSet1.clients)

            Dim clientNumber As String = DataSet1.clients.Item(0).ClientNumber
            Dim origTelNo1 As String = DataSet1.clients.Item(0).ClientTeleDay
            Dim origTelNo2 As String = DataSet1.clients.Item(0).ClientTeleNight
            Dim origTelNo3 As String = DataSet1.clients.Item(0).ClientTeleMobile
            Dim newTelNo1 As String
            Dim newTelNo2 As String
            Dim newTelNo3 As String

            newTelNo1 = Number1Format(origTelNo1)
            newTelNo2 = Number2Format(origTelNo2)
            newTelNo3 = Number3Format(origTelNo3)

            ClientsTableAdapter.Adapter.UpdateCommand.CommandText = "UPDATE Clients SET TelNo1 = '" + newTelNo1 + "',TelNo2 = '" + newTelNo2 + "',TelNo3 = '" + newTelNo3 + "' WHERE ClientNumber = '" + clientNumber + "'"

            ClientsTableAdapter.Update(DataSet1.clients)

            x = x + 1

        Loop

        End

    End Sub

Answer : Can anybody see why this isnt changing the data in my database...

The following, in a .htacces file, will allow a user  to enter URL:

/Christian.Music.Media/abc-def/1134.htm

and be served this page:

/Christian.Music.Media/musicvideos.htm?cat=video&artist=abc&title=def&id=1134

-----


RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule Christian.Music.Media/([^-/.]*)-([^-/.]*)/([^-/.]*)\.htm$  /Christian.Music.Media/musicvideos.htm?cat=video&artist=$1&title=$2&id=$3 [L]
Random Solutions  
 
programming4us programming4us