Hi Everyone,
I need help with my PHP programming that connect to MS SQL server.
I had set up successfully with the DNS system and trying to run my sql query.
Here is what i do for my connection to the database, which work fine:-
$dsn="server_name";
$sqlconnect=odbc_connect($dsn,'username','password')or die;
But when i try to execute a SQL statement like this :-
$sqlquery="select * from queenie.queenie";
$process=odbc_execute($sqlconnect, $sqlquery) or die;
i got an error, and i dont know what cause it.
The error is:-
Warning: odbc_execute() [function.odbc-execute]: No array passed in C:\wamp\www\CR_www\sqlserver.php on line 58
Thanks alot.
Queenie