Akses MySQL pada ASP Classic

Dim sConnection
Dim oConnection
Dim oRS

sConnection = "DRIVER={MySQL ODBC 3.51 Driver}; SERVER=[ipserver]; DATABASE=[namaDataBase]; UID=[user];PASSWORD=[password]"

Set oConnection = Server.CreateObject("ADODB.Connection")

oConnection.Open(sConnection)

Set oRS = oConnection.Execute("SELECT * FROM siswa")

While Not oRS.EOF
  Response.Write oRS ("namafield") & "  " & oRS ("namafield") & "<br>"
  oRS.MoveNext
Wend

oRS.Close
Set oRS = Nothing

oConnection.Close
Set oConnection = Nothing


Namun sebelumnya server IIS harus diinstall Connector/ODBC
bisa didownload di disini

Demikian

 

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Krasnoyarsk' for '7.0/no DST' instead i

Jika anda menjumpai error tersebut pada coding php, silahkan anda menambahkan script berikut

date_default_timezone_set("Asia/Jakarta");

pada awal coding.

Demikian semoga bermanfaat.

Driver Satellite M115-S3154

Berikut adalah  Driver Satellite M115-S3154, semua saya download dari www..toshiba.com

1. Audio
2. WLan
3. Video
4. Lan
5. Touchpad

Terima kasih

Postingan Lebih Baru Postingan Lama