Jump to content
php.lv forumi

erroru apstraade


Grey_Wolf

Recommended Posts

piemeram:

 

$db=mysql_pconnect('localhost', 'useris', 'parole');
if (!$db)
{
echo "kljuda<br>";
}
echo mysql_errno();
echo "<br>";
echo mysql_error();

ja nav palaists MYSQl tad ir saads pazinjojums

----

Warning: mysql_pconnect(): Can't connect to MySQL server on 'localhost' (10061) in c:\apache\htdocs\eror_test.php on line 9

kljuda

2003

Can't connect to MySQL server on 'localhost' (10061)

---

 

Jautaajums: vai var panaakt ka netiek izvadiits iebuuveetais PHP kljudas pazinjojums - nemainot PHP.ini un neizmantojot error_reporting() , lai atslegtu

kljudas pazinjojumu.

respektiivi ja ir MYSQL kljuda tad taa tiek apstraadaata ar mysql_er*() bet PHP pazinjojums netiek izvadiits

Link to comment
Share on other sites

×
×
  • Create New...