Abdullah 37 Posted March 9, 2011 Share Posted March 9, 2011 (edited) Arkadaşlar veri tabanındaki veriyi çekip listeletmek istiyorum. MySQL bağlantısını yaptım. Dinamik tabloyu oluşturunca aşağıdaki şekilde "Tanımlanamayan bir hata oluştu diyor". Bu neden kaynaklanabilir. Yada nerde hata yapmış olabilirim. [img]http://i55.tinypic.com/2m4tvtd.jpg[/img] Edited March 9, 2011 by Abdullah 37 Quote Link to comment Share on other sites More sharing options...
Abdullah 37 Posted March 9, 2011 Author Share Posted March 9, 2011 Arkadaşlar bilgisi olan yok mu? Quote Link to comment Share on other sites More sharing options...
carysma1 Posted March 9, 2011 Share Posted March 9, 2011 (edited) Önce recordset oluştur ve bindings alanından kayıtsetinin alanlarını sayfana sürükle bırak {Recordset1.artist} gibi birşey eklenecek bunu seçili hale getir ve daha sonrada server behaviors dan repeat region a tıkla ve kaç kayıt gösterileceğini seç bunları doğru yaptıysan hata vermemesi lazım kolay gelsin Edited March 9, 2011 by carysma1 Quote Link to comment Share on other sites More sharing options...
Abdullah 37 Posted March 9, 2011 Author Share Posted March 9, 2011 (edited) [quote name='carysma1' date='09 Mart 2011 - 19:23 ' timestamp='1299691984' post='977187'] Önce recordset oluştur ve bindings alanından kayıtsetinin alanlarını sayfana sürükle bırak {Recordset1.artist} gibi birşey eklenecek bunu seçili hale getir ve daha sonrada server behaviors dan repeat region a tıkla ve kaç kayıt gösterileceğini seç bunları doğru yaptıysan hata vermemesi lazım kolay gelsin [/quote] Dediklerinizi yaptım ama yine sonuç aynı. Yada ben bir hata yapıyorum. Edited March 9, 2011 by Abdullah 37 Quote Link to comment Share on other sites More sharing options...
carysma1 Posted March 9, 2011 Share Posted March 9, 2011 Biraz beklerseniz video linki vericem Quote Link to comment Share on other sites More sharing options...
carysma1 Posted March 9, 2011 Share Posted March 9, 2011 (edited) http://www.youtube.com/watch?v=DablnLWXqgU Edited March 9, 2011 by carysma1 Quote Link to comment Share on other sites More sharing options...
Abdullah 37 Posted March 9, 2011 Author Share Posted March 9, 2011 (edited) Hocam ben orda anlatılanların hepsini yapıyorum. Ancak oluşturmuş olduğum Recordsetin üstüne tıklayınca altındaki oluşmuş dosyaları göremiyorum. "Tanımlanamayan bir hata oluştu" şeklinde dialog penceresi açılıyor. Edited March 9, 2011 by Abdullah 37 Quote Link to comment Share on other sites More sharing options...
carysma1 Posted March 9, 2011 Share Posted March 9, 2011 Phpmyadmin ile veri tabanı oluşturup birkaç kayıt girmen gerekiyor bunu yaptınmı Quote Link to comment Share on other sites More sharing options...
Abdullah 37 Posted March 9, 2011 Author Share Posted March 9, 2011 [quote name='carysma1' date='09 Mart 2011 - 20:21 ' timestamp='1299695461' post='977227'] Phpmyadmin ile veri tabanı oluşturup birkaç kayıt girmen gerekiyor bunu yaptınmı [/quote] Evet yaptım . Aşağıdaki hatayı alıyorum. Recordset oluştururken test butonuna tıklayınca da aynı hatayı alıyorum. [img]http://i55.tinypic.com/2jfcg0k.jpg[/img] Quote Link to comment Share on other sites More sharing options...
carysma1 Posted March 9, 2011 Share Posted March 9, 2011 (edited) Yeni bir dosya olurup denermisin aynı işlemleri yanlız dosyayı dreamweaver ile oluştur ve içerisinde yanlızca temel html kodları olsun yani [code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> </body> </html>[/code] Bu şekilde olsun. Buda olmazsa dreamweaverı yeniden kurmayı dene bakalım olacakmı aklıma başka bişey gelmedi Edited March 9, 2011 by carysma1 Quote Link to comment Share on other sites More sharing options...
Abdullah 37 Posted March 9, 2011 Author Share Posted March 9, 2011 Hocam yine aynı hatayı veriyor. Quote Link to comment Share on other sites More sharing options...
carysma1 Posted March 9, 2011 Share Posted March 9, 2011 (edited) Şu kodları .php uzantılı bir dosyaya yapıştır veri tabanı ayarlarını kodlarda anlatıldığı gibi yap web tarayıcında localhost/dosyadı.php yazıp görüntülemeyi bir dene bakalım Server kaynaklımı anlayalım [code]<?php $db_server = "localhost"; $db_user = "" //Veri tabanı kullanıcı adı yazılacak $db_pass = "" //Veri tabanı parolası yazılacak $db_name = "" //Veri tabanı adı yazılacak $table_name = "" //Kayıtları gösterilecek tablo adı $connection = mysql_connect($db_server, $db_user, $db_pass); if(!$connection){ die('Veri tabanı bağlantısı sağlanamıyor: '.mysql_error()); } else { $db_select = mysql_select_db($db_name, $connection); if(!$db_select) { die('Veri tabanı seçilemiyor: '.mysql_error()); } } $query = "SELECT * FROM ".$table_name; $result = mysql_query($query, $connection); while ($row = mysql_fetch_array($result)) { echo "<p>".$row['id']."</p>"; //$row['id'] kısmında '' tırnaklar içinde gösterilecek alan adı yazılacak. örnek: $row['baslik'] } ?> [/code] Edited March 9, 2011 by carysma1 Quote Link to comment Share on other sites More sharing options...
Abdullah 37 Posted March 9, 2011 Author Share Posted March 9, 2011 Olmuyor hocam. Quote Link to comment Share on other sites More sharing options...
carysma1 Posted March 9, 2011 Share Posted March 9, 2011 Bu kodlarda hata aldıysan veri tabanı bağlantısı sağlanamıyordur Wampserver veya Appserv i kurup öyle denersin Quote Link to comment Share on other sites More sharing options...
Abdullah 37 Posted March 9, 2011 Author Share Posted March 9, 2011 [quote name='carysma1' date='09 Mart 2011 - 21:35 ' timestamp='1299699947' post='977287'] Bu kodlarda hata aldıysan veri tabanı bağlantısı sağlanamıyordur Wampserver veya Appserv i kurup öyle denersin [/quote] Hocam zaten AppServ kurulu. Ama MySQL bağlantısını yapınca tablolarımı görebiliyorum. Quote Link to comment Share on other sites More sharing options...
carysma1 Posted March 9, 2011 Share Posted March 9, 2011 Dreamweaver ı kaldırıp tekrar kur bilemiyorum aklıma başka birşey gelmiyor Quote Link to comment Share on other sites More sharing options...
Abdullah 37 Posted March 9, 2011 Author Share Posted March 9, 2011 [quote name='carysma1' date='09 Mart 2011 - 22:06 ' timestamp='1299701764' post='977317'] Dreamweaver ı kaldırıp tekrar kur bilemiyorum aklıma başka birşey gelmiyor [/quote] Programı kaldırıp tekrar kurdum. Sonuç yine aynı. Programdan kaynaklanabilir mi? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.