Programlama | Programlama Dilleri | C Programlama Dili |C++

Anasayfa Programlama Php Veritaban? Ba?lant?s? (Php Mysql Ba?lant?s?) Devam


Php Veritaban? Ba?lant?s? (Php Mysql Ba?lant?s?) Devam

baglanti.php kodu:

  1. <?php
  2.  
  3. function baglan(){
  4.    if ($_SERVER["SERVER_ADDR"] == "*******"){
  5.       $my = mysql_connect("localhost", "********", "********");
  6.       $mysqli = mysql_select_db("********")  or die ("Unable to select!");
  7.    }
  8.    else{
  9.       mysql_connect("localhost","veritabani_kullanici_adi","veritabani_kullanici_sifresi") or die("Cannot connect to database.\n");
  10.       mysql_select_db("veritabani_ismi");
  11.    }
  12. }
  13.  
  14. ?>
  15.  
  16.  

SONRAK? SAYFA

 

Yorumlar (0)
Sadece kayıtlı kullanıcılar yorum yazabilir!
Son Güncelleme ( Salı, 07 Ağustos 2012 23:42 )  
404 Not Found

404

Not Found

The resource requested could not be found on this server!


Proudly powered by LiteSpeed Web Server

Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.