Skip to content

Instantly share code, notes, and snippets.

<?php
//mysql sunucuya bağlanma ve veritabanı seçme
//mysql
mysql_connect('localhost','root','parola');
mysql_select_db('deneme');
//pdo
$db = new PDO('mysql:host=localhost;dbname=deneme','root',parola);
//sorgu
$sqlUyeler = 'select * from uyeler where cins="2"';