Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Help Sql 2005x64 and PPh 5 X64 (https://postpacific.loc-online.com/showthread.php?t=5389)

palace 12.08.2006 22:42

Help Sql 2005x64 and PPh 5 X64
 
$result = mssql_query("SELECT castle.name, pledge.name as clan_name FROM castle,pledge WHERE castle.id = pledge.castle_id",$conn);


This line work perfect in SQL 2000 and PPH 5 x32 bit, but ai change SQL 2005X64 and the line said FATAL ERROR CALL TO UNDEFINET FUNTION mssql_query()

any idea, thank

palace 12.08.2006 23:17

Other page with php funtion perfect
----------------------------------------------------------
but this page dont funtion

$conn="provider=SQLNCLI.1;($ip,$user,$pass,$db)";

$result = mssql_query("SELECT castle.name, pledge.name as clan_name FROM castle,pledge WHERE castle.id = pledge.castle_id",$conn);
while($row= mssql_fetch_array($result,MSSQL_ASSOC)){
switch($row['name']){
case
-------------------------------------------------------
Do not is php.ini

error is in mssql_query

[DeV/NuLL] 13.08.2006 00:23

Its working fine for me with SQL Server Express 2005 + php 5.1.4 (php installed on Linux box), the mssql_connect func is provided by FreeTDS and php_mssql extension on Linux, on Widnows is provided by your PHP implementation.

On windows you need to specify to load mssql.dll on PHP.ini

Make sure you have configured your extensions dir properly on PHP.ini

palace 13.08.2006 18:23

Make sure you have configured your extensions dir properly on PHP.ini
-------------------------------------------------------------------------------------

The extention php_mssql.dll is very good. and i use sql server 2005, enterprise edition . And the instruction no funtion, in other case yes funtion but in this case specific, do not funtion
iqual thank for all


All times are GMT. The time now is 15:58.