Jump to content
php.lv forumi

mssql connect


Chapman

Recommended Posts

ja man kods ir šāds:

<?php

$server = 'PC-4CE06ADA2A22\SQLEXPRESS';
$SQLUser = 'sa';
$SQLpw  = 'lamer1';
// Connect to MSSQL
$link = mssql_connect($server, $SQLUser, $SQLpw);

if (!$link) {
   die('Nevar pieslēgtiess Serverim!');
}
?>

tad kāpēc man izmet šādu error:

Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\index.php on line 7

kas nepareizi mssql_connect funkcijaa?

Link to comment
Share on other sites

tad kāpēc man izmet šādu error:

Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\index.php on line 7

kas nepareizi mssql_connect funkcijaa?

Tapec ka PHP nav noradiits MSSSQL modulis....

Precizak vinsh vienkarshi nav pieinstalets..

Ja OS ir WIN tad meklee PHP.ini faila ~~aptuveni shadu rindinju extension=php_mssql.dll un nonjem prieksaa ;

Var gadities ka vinja nemaz netrodas, un arii pasha pievienojamaa modulja vispar nav..

Ja nav pasha modulja tad sameklee ieksh PHP.Net attieciigas versijas Pilno paku (ZIP) un tur vajadzetu buut ieksaa

 

P.S. Gan ini faila uzbuve gan extensiju daudzums ,Tas viss stipri atkariigs no PHP versijas, kaa arii no ta kadu paku izmanto ( ar win instaleri , pakaa ir krietni mazak ehtensiju )

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...