kocak37 Posted January 2, 2014 Share Posted January 2, 2014 [php] <?php //kayıt setleri oluşturulacak //kdv bilgieri kayıt seti $query_Kdv = "SELECT * FROM urun_kdv"; $rsKdv = mysql_query($query_Kdv); $row_rsKdv =mysql_fetch_object($rsKdv); $num_row_rsKdv = mysql_num_rows($rsKdv); //kategori bilgiler için kayıt seti $query_UrunKategori = "SELECT * FROM urun_kategori"; $rsUrunKategori = mysql_query($query_UrunKategori); $row_rsUrunKategori = mysql_fetch_object($rsUrunKategori); $num_row_rsUrunKategori = mysql_num_rows($rsUrunKategori); ?> <!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> <?php echo" kdv çeşidi sayısı:".$num_row_rsKdv; echo"<br/>"; echo"ürün kategori syısı".$num_row_rsUrunKategori; ?> </body> </html> [/php] argumant hatası alıyorum kayıt setinde burada : $row_rsKdv =mysql_fetch_object($rsKdv); Quote Link to comment Share on other sites More sharing options...
KintaRo Posted January 2, 2014 Share Posted January 2, 2014 peki sayfanın daha üst satılarına db bağlantı bilgilerini yazdınız mı? ya da db bilgilerini içeren sayfayı include ettiniz mi? ayrıca web kodlarınızı [php] ... [/php] tagları içine alınız. bu seferlik ben düzelttim. Quote Link to comment Share on other sites More sharing options...
kocak37 Posted January 2, 2014 Author Share Posted January 2, 2014 evt dreamviver ile veri tabanına bağlantı yaptım Quote Link to comment Share on other sites More sharing options...
KintaRo Posted January 2, 2014 Share Posted January 2, 2014 dreamweaver ile hiç denemedim ama, kodlar sadece bu kadarsa veritabanına bağlanmaz. [php] <?php $dbhost = "localhost"; $dbkullanici = "root"; $dbsifre = ""; $dbadi = "db_adi"; $baglan = mysql_connect($dbhost,$dbkullanici,$dbsifre); if(!$baglan) { ('MYSQL Bağlanamıyor..!!');} else { ('MYSQL bağlantısı kuruldu...'); } [/php] mysql sorgularından önce bu şekilde veritabanına bağlanmanız gerekir. Quote Link to comment Share on other sites More sharing options...
kocak37 Posted January 3, 2014 Author Share Posted January 3, 2014 tamam mbir deneyim Quote Link to comment Share on other sites More sharing options...
kocak37 Posted January 4, 2014 Author Share Posted January 4, 2014 bağlantı kuruldu veya kurulmadı hiç bir şey yazmadı var bi sıkıntı ya localhostta veya dreamwiverdamı anlamadım ne yapmam gerek Quote Link to comment Share on other sites More sharing options...
KintaRo Posted January 4, 2014 Share Posted January 4, 2014 pm ile team viewer gönderirsen bakayım Quote Link to comment Share on other sites More sharing options...
kocak37 Posted January 5, 2014 Author Share Posted January 5, 2014 pm ile team viewer gönderirsen bakayım Tamam akşam müsaitmisiniz 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.