Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
ZTE MF283U 4G Unlocked Router (Used)
ayanthamaxi
Updated:
Sunday at 8:26 PM
ලංකාවේ හොඳම උපකාරක පන්ති සහ ගුරුවරුන් එකම තැනකින් - TopTuition.lk
dulithapathum
Updated:
Saturday at 8:07 AM
Colombo
RidhMathraa ’26 🎶✨
Tmadhusanka
Updated:
Jul 15, 2026
Ad icon
Colombo
PXN V10 Pro Direct Drive Racing Wheel (Under Warranty)
Abdur Rahman
Updated:
Jul 15, 2026
Ad icon
USDT ණය සේවාව - USDT Loan Service
පුරවැසියා
Updated:
Jul 15, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
Visual basic 6 and .net
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="vbmaster" data-source="post: 3936915" data-attributes="member: 109688"><p>ok this is the way , </p><p></p><p>issellama </p><p><strong><span style="font-size: 10px">MySQL Connector/ODBC 3.51 Downloads </span></strong></p><p><strong></strong>eka download karanna oni </p><p></p><p>[code] [URL="ftp://ftp.inria.fr/pub/MySQL/Downloads/Connector-ODBC/3.51/mysql-connector-odbc-3.51.27-win32.msi"]Download[/URL] or [URL="http://dev.mysql.com/downloads/connector/odbc/3.51.html#win32"]http://dev.mysql.com/downloads/connector/odbc/3.51.html#win32[/URL][/code] </p><p>meka instrall karata passe thamai me vb codes wada karanne </p><p></p><p></p><p></p><p>[code]</p><p></p><p>Dim con As Connection</p><p>Dim rs As Recordset</p><p></p><p>Dim server As String ' server eka hari server eke ip , nathnam "localhost" </p><p>Dim port As String 'port eka (3306) </p><p>Dim user_name As String ' "root" </p><p>Dim dbname As String </p><p>Dim psw As String </p><p>Dim [COLOR=DarkOrchid]table[/COLOR] As String </p><p></p><p>[/code] </p><p></p><p>[code]</p><p>server = "localhost"</p><p>port = "3306"</p><p>dbname = "your_db_name"</p><p>user_name = "root" ' or your user name in mysql</p><p>psw = "your password"</p><p>table = "your_table_name"</p><p>[/code] </p><p></p><p>create your connection </p><p></p><p>[code]</p><p>Set con = New Connection</p><p></p><p>con.Open "DRIVER={MySQL ODBC 3.51 Driver};" & "SERVER=" & server & ";" _</p><p> & " DATABASE=" & dbname & ";" & " PORT=" & port & ";" _</p><p> & "UID=" & user_name & ";PWD=" & psw & "; OPTION=3"</p><p></p><p>[/code] </p><p></p><p>use table</p><p></p><p>[code]</p><p>Set rs = New Recordset</p><p>rs.Open [COLOR=Red]"sqlcommands"[/COLOR], con</p><p></p><p>'sqlcommands walta mysql commands use karanna with in "" </p><p>' Eg : "INSERT INTO [COLOR=DarkOrchid]table[/COLOR] (autoID , name , email, ) VALUES (NULL , '" & [COLOR=DarkOrange]varname[/COLOR] & "' , ' " & var[COLOR=DarkOrange]email[/COLOR] & '" )"</p><p></p><p>[/code] </p><p></p><p> form unload </p><p>[code]</p><p>Set rs = Nothing </p><p>con.Close</p><p>Set con = Nothing</p><p></p><p>[/code] </p><p></p><p>edit : Project > References > Microsoft ActiveX Data Objects 2.7 Library. tick on it </p><p>ok it's finish . <img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="vbmaster, post: 3936915, member: 109688"] ok this is the way , issellama [B][SIZE=2]MySQL Connector/ODBC 3.51 Downloads [/SIZE] [/B]eka download karanna oni [code] [URL="ftp://ftp.inria.fr/pub/MySQL/Downloads/Connector-ODBC/3.51/mysql-connector-odbc-3.51.27-win32.msi"]Download[/URL] or [URL="http://dev.mysql.com/downloads/connector/odbc/3.51.html#win32"]http://dev.mysql.com/downloads/connector/odbc/3.51.html#win32[/URL][/code] meka instrall karata passe thamai me vb codes wada karanne [code] Dim con As Connection Dim rs As Recordset Dim server As String ' server eka hari server eke ip , nathnam "localhost" Dim port As String 'port eka (3306) Dim user_name As String ' "root" Dim dbname As String Dim psw As String Dim [COLOR=DarkOrchid]table[/COLOR] As String [/code] [code] server = "localhost" port = "3306" dbname = "your_db_name" user_name = "root" ' or your user name in mysql psw = "your password" table = "your_table_name" [/code] create your connection [code] Set con = New Connection con.Open "DRIVER={MySQL ODBC 3.51 Driver};" & "SERVER=" & server & ";" _ & " DATABASE=" & dbname & ";" & " PORT=" & port & ";" _ & "UID=" & user_name & ";PWD=" & psw & "; OPTION=3" [/code] use table [code] Set rs = New Recordset rs.Open [COLOR=Red]"sqlcommands"[/COLOR], con 'sqlcommands walta mysql commands use karanna with in "" ' Eg : "INSERT INTO [COLOR=DarkOrchid]table[/COLOR] (autoID , name , email, ) VALUES (NULL , '" & [COLOR=DarkOrange]varname[/COLOR] & "' , ' " & var[COLOR=DarkOrange]email[/COLOR] & '" )" [/code] form unload [code] Set rs = Nothing con.Close Set con = Nothing [/code] edit : Project > References > Microsoft ActiveX Data Objects 2.7 Library. tick on it ok it's finish . :D [/QUOTE]
Insert quotes…
Verification
Dawasata paya keeyak thibeda?
Post reply
Top
Bottom