Jump to content

Mysql Bağlantı Sorunu


Yusuf-Yildiz
 Share

Recommended Posts

[b]S.a. arkadaşlar,[/b]
[b]
[/b]
[b]OnStartup'a;[/b][code]MySQLConnection, err = MySQL:connect("www.siteismi.net", "kullanıcıadı", "şifre", "https://m5085.canohosting.com",port);

if not MySQLConnectionn and err then
Dialog.Message("Hata", "Veritabanı ile bağlantı kurulamadı!", MB_OK, MB_ICONSTOP);end[/code]

[b]Page OnShow'a;[/b]

[code]
MySQLCursor, id = MySQLConnection:execute("SELECT haber_id FROM haber");
MySQLCursor, baslik = MySQLConnection:execute("SELECT haber_baslik FROM haber");
MySQLCursor, kategori = MySQLConnection:execute("SELECT haber_kategori FROM haber");
MySQLCursor, detay = MySQLConnection:execute("SELECT haber_detay FROM haber");
MySQLCursor, resim = MySQLConnection:execute("SELECT haber_resim FROM haber");
MySQLCursor, tarih = MySQLConnection:execute("SELECT haber_tarih FROM haber");

Label.SetText("baslik", baslik);
Label.SetText("kategori", kategori);
Paragraph.SetText("detay", detay);
Image.Load("resim", "http://www.siteismi.net/foto/"..id);
Paragraph.SetText("tarih", tarih);[/code]

[b]yazdım. Fakat veritabanına bağlanılamadı dialoğunu gösteriyor. Acaba yerlerini mi karıştırdım? Doğrusu nedir?[/b]
Link to comment
Share on other sites

[quote name='ReaLyMaN' date='05 January 2012 - 00:20 ' timestamp='1325715629' post='1135823']
@severalnasty sana hızlandırılmış dayak dersi lazım bu ne böyle
[/quote]

[b]İlk defa mysql'den veri çekiyorum hocam, hiçbir yerde bulamadım, sql var mysql yok [img]http://www.tnctr.com/public/style_emoticons/default/dry.gif[/img][/b]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...