fork download
  1. <?php
  2.  
  3. class Connect
  4. {
  5. //public $error;
  6.  
  7. public function mysqlConnect()
  8. {
  9. $link = mysql_connect("localhost","root","1");
  10. $db = mysql_select_db("tarih",$link);
  11. mysql_query("SET NAMES utf8");
  12. mysql_query("SET CHARACTER SET utf8");
  13. mysql_query("SET COLLATION_CONNECTION = 'utf8_general_ci'");
  14. header('Content-Type: text/html; charset=utf-8');
  15. $this->db = $link;
  16. return $link;
  17. }
  18. }
  19. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
Standard output is empty