WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   php+mssql trouble (http://www.wcm.at/forum/showthread.php?t=189537)

exacta 13.04.2006 13:52

php+mssql trouble
 
hi zusammen!

folgende konfig:
os: winxp pro sp2
webserver: apache 2.0.55
php: 5.1.2
dbsrv: ms sql 2000 sp4

wenn ich ein html file mit folgendem php code drinnen ausführe...


---------------------------
<?php

$hostname = "datensilo";
$username = "nw";
$password = "nw";
$dbName = "northwind";

MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED TO RESPOND.");
mssql_select_db($dbName) or DIE("Table unavailable");

$query = "SELECT * FROM employees";

$result = MSSQL_QUERY($query);

$number = MSSQL_NUM_ROWS($result);

$i=0;

if ($number == 0) :
print "No data?";
elseif ($number > 0) :
print "Data:
";
while ($i < $number) :
$name = mssql_result($result,$i,"Name");
print $name;
print "
";
$i++;
endwhile;
endif;
?>
----------------------


... bekomme ich folgende fehlermeldung:


Warning: mssql_query() [function.mssql-query]: message: Unicode-Daten in einer Nur-Unicode-Sortierung oder ntext-Daten können nicht an Clients gesendet werden, die DB-Library (z.B. isql) oder ODBC, Version 3.7 oder früher, verwenden. (severity 16) in C:\Programme\Apache Group\Apache2\htdocs\index.html on line 13

Warning: mssql_query() [function.mssql-query]: Query failed in C:\Programme\Apache Group\Apache2\htdocs\index.html on line 13

Warning: mssql_num_rows(): supplied argument is not a valid MS SQL-result resource in C:\Programme\Apache Group\Apache2\htdocs\index.html on line 15
No data?


any idea was das mit der unicode gschicht auf sich hat? werd nicht schlau draus und google sagt mir nicht viel drüber...

thx!

mfG,
exacta :smoke:


Alle Zeitangaben in WEZ +2. Es ist jetzt 20:27 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag