Ben aşağıdaki kodu ile PHP ile MySQL bağlanmak için çalışıyorum
<?php
$dbhost = 'localhost';
$dbuser = 'root';
$pass = 'pass'
$con = mysql_connect($dbhost,$dbuser,$pass);
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("test", $con);
mysql_query("UPDATE cbdb SET fax = '36160'
WHERE cemail = 'test_cemail@gmail.com' AND cbref = 'test_cbref'");
mysql_close($con);
?
ancak bir hata yok MySQL bağlantı hatası görüntülenir olsa bile geliyor.