DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
[FONT="Trebuchet MS"][SIZE="2"]Sub Emre()
Set rs = CreateObject("Adodb.Recordset")
Set con = CreateObject("Adodb.Connection")
Server_Name = "[COLOR="Red"]Buraya Server IP ya da Web Site Adı[/COLOR]"
Database_Name = "[COLOR="red"]Buraya Veritabanı Adı[/COLOR]"
User_ID = "[COLOR="red"]Buraya Kullanıcı Adı[/COLOR]"
Password = "[COLOR="red"]Buraya Parola[/COLOR]"
port = "3306"
con.Open = "Driver={[COLOR="blue"]MySQL ODBC 3.51 Driver[/COLOR]};Server=" & Server_Name & _
";Port=" & port & _
";Database=" & Database_Name & _
";User=" & User_ID & _
";Password=" & Password & _
";Option=4;"
MsgBox "bağlandı"
sorgu = "Select * from [COLOR="red"]tabloadı[/COLOR]"
rs.Open sorgu, con, 1, 3
Range("A2").CopyFromRecordset rs
rs.Close: con.Close
End Sub[/SIZE][/FONT]
Private Sub CommandButton1_Click()
' KAYIT EKLEME*******************
Set rs = CreateObject("Adodb.Recordset")
Set con = CreateObject("Adodb.Connection")
Server_Name = "www.******.com.tr"
Database_Name = "*****"
User_ID = "*****"
Password = "*****"
port = "3306"
con.Open = "Driver={MySQL ODBC 3.51 Driver};Server=" & Server_Name & _
";Port=" & port & _
";Database=" & Database_Name & _
";User=" & User_ID & _
";Password=" & Password & _
";Option=4;"
sorgu = "Select * from firma"
rs.Open sorgu, con, 1, 3
rs.Addnew
rs("kod").Value = Range("kod").Value
rs("fadi").Value = Range("fadi").Value
rs("fadres").Value = Range("fadres").Value
rs("sadi").Value = Range("sadi").Value
rs("sadres").Value = Range("sadres").Value
rs("vergino").Value = Range("vergino").Value
rs("vergida").Value = Range("vergida").Value
rs("telefon").Value = Range("telefon").Value
rs("fax").Value = Range("fax").Value
rs("email").Value = Range("email").Value
rs("kisi").Value = Range("kisi").Value
rs.Update
rs.Close: con.Close
Private Sub CommandButton3_Click()
' KAYIT EKLEME*******************
Set rs = CreateObject("Adodb.Recordset")
Set con = CreateObject("Adodb.Connection")
Server_Name = "****"
Database_Name = "***"
User_ID = "***"
Password = "***"
port = "3306"
con.Open = "Driver={MySQL ODBC 3.51 Driver};Server=" & Server_Name & _
";Port=" & port & _
";Database=" & Database_Name & _
";User=" & User_ID & _
";Password=" & Password & _
";Option=4;"
sorgu = "Select * from firma where kod='Range("kod").Value '"
rs.Open sorgu, con, 1, 3
If rs.RecordCount > 0 Then
On Error Resume Next
Range("kod").Value = ""
Range("fadi").Value = ""
Range("fadres").Value = ""
Range("sadi").Value = ""
Range("sadres").Value = ""
Range("vergino").Value = ""
Range("vergida").Value = ""
Range("telefon").Value = ""
Range("fax").Value = ""
Range("email").Value = ""
Range("kisi").Value = ""
Range("kod").Value = rs("kod").Value
Range("fadi").Value = rs("fadi").Value
Range("fadres").Value = rs("fadres").Value
Range("sadi").Value = rs("sadi").Value
Range("sadres").Value = rs("sadres").Value
Range("vergino").Value = rs("vergino").Value
Range("vergida").Value = rs("vergida").Value
Range("telefon").Value = rs("telefon").Value
Range("fax").Value = rs("fax").Value
Range("email").Value = rs("email").Value
Range("kisi").Value = rs("kisi").Value
Else
MsgBox "CİHAZ KAYITLI DEĞİL ! LÜTFEN BİLGİLERİ ELLE DOLDURUN VE KAYIT EDİN"
End If
rs.Close: con.Close
End Sub
[SIZE="2"]<?php
header("Content-Type: text/html; charset=utf-8");
$host = "localhost";
$dbadi = "vtadi"; // Veritabanı ismi
$dbkadi="kul.adi"; // Veritabanı kullanıcı adı
$dbsifre = "vtparola"; // Veritabanı şifresi
$baglanti = @mysql_connect($host,$dbkadi,$dbsifre) or die ("Veritabanı bağlantısı yapılamadı.");
mysql_select_db($dbadi,$baglanti) or die ("Veritabanı seçilemedi.");
mysql_query("SET NAMES 'UTF8'");
mysql_query("SET character_set_connection = 'UTF8'");
mysql_query("SET character_set_client = 'UTF8'");
mysql_query("SET character_set_results = 'UTF8'");
?>[/SIZE]
[SIZE="2"]Sub Degistir()
Cells.Replace What:="ç", Replacement:="(/*1)", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False
Cells.Replace What:="Ç", Replacement:="(/*2)", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False
Cells.Replace What:="ğ", Replacement:="(/*3)", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False
Cells.Replace What:="Ğ", Replacement:="(/*4)", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False ', LookAt:=XlPart
Cells.Replace What:="ü", Replacement:="(/*5)", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False ', LookAt:=XlPart
Cells.Replace What:="Ü", Replacement:="(/*6)", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False ', LookAt:=XlPart
Cells.Replace What:="ş", Replacement:="(/*7)", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False ', LookAt:=XlPart
Cells.Replace What:="Ş", Replacement:="(/*8)", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False ', LookAt:=XlPart
Cells.Replace What:="ö", Replacement:="(/*11)", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False ', LookAt:=XlPart
Cells.Replace What:="Ö", Replacement:="(/*12)", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False ', LookAt:=XlPart
Cells.Replace What:="é", Replacement:="(/*13)", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False ', LookAt:=XlPart
Cells.Replace What:="İ", Replacement:="(/*14)", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False
Cells.Replace What:="ı", Replacement:="(/*10)", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False ', LookAt:=XlPart
End Sub[/SIZE]
[SIZE="2"]/*
ç => (/*1)
Ç => (/*2)
ğ => (/*3)
Ğ => (/*4)
ü => (/*5)
Ü => (/*6)
ş => (/*7)
Ş => (/*8)
İ => (/*9)
ı => (/*10)
ö => (/*11)
Ö => (/*12)
é => (/*13)
İ => (/*14)
*/
function v_($veri){
$veri = str_replace("(/*1)","ç",$veri);
$veri = str_replace("(/*2)","Ç",$veri);
$veri = str_replace("(/*3)","ğ",$veri);
$veri = str_replace("(/*4)","Ğ",$veri);
$veri = str_replace("(/*5)","ü",$veri);
$veri = str_replace("(/*6)","Ü",$veri);
$veri = str_replace("(/*7)","ş",$veri);
$veri = str_replace("(/*8)","Ş",$veri);
$veri = str_replace("(/*9)","İ",$veri);
$veri = str_replace("(/*10)","ı",$veri);
$veri = str_replace("(/*11)","ö",$veri);
$veri = str_replace("(/*12)","Ö",$veri);
$veri = str_replace("(/*13)","é",$veri);
$veri = str_replace("(/*14)","İ",$veri);
$veri = str_replace("(noktalıvirgul)",";",$veri);
return $veri;
}[/SIZE]
Driver={MySQL ODBC 3.51 Driver};Server=localhost;Database=dbtest; User=user1;Password=mysql;Option=3;CharSet=utf8;
[SIZE="2"] con.Open = "Driver={MySQL ODBC 3.51 Driver};Server=" & Server_Name & _
";Port=" & port & _
";Database=" & Database_Name & _
";User=" & User_ID & _
";Password=" & Password & _
";Option=4;" & _
"[COLOR="Red"];CharSet=utf8;[/COLOR]"[/SIZE]
con.Open = "Driver={MySQL ODBC 3.51 Driver};Server=" & Server_Name & _
";Port=" & port & _
";Database=" & Database_Name & _
";User=" & User_ID & _
";Password=" & Password & _
";Option=4;" & _
";CharSet=latin5;"
sorgu = "Select * from firma "
rs.Open sorgu, con, 1, 3
[SIZE="2"]sorgu = "Select * from firma where kod='" & Range("kod").Value & "'"[/SIZE]