hatayı
fuction __construct()
{
try
{
$this->vt= new PDO("mysql:host=localhost;dbname=uye;","root","");
}
catch(PDOException $e)
{
echo "hata".$e->getMessage();
}
}
şeklinde çözdüm ama neden $değişken üzerinden almıyor anlamış değilim :(
fuction __construct()
{
try
{
$this->vt= new PDO("mysql:host=localhost;dbname=uye;","root","");
}
catch(PDOException $e)
{
echo "hata".$e->getMessage();
}
}