Jump to content


Photo

Fatal error: Call to undefined function mssql_connect ()


  • Please log in to reply
6 replies to this topic

#1 janvier123

janvier123

    Php Guru

  •  
  • 1,107 posts

Posted 24 January 2011 - 11:41 AM

open your PHP.INI in your xampp or whate even you use
path for xampp "\xampp\php"

and look for

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

Find:

;extension=php_mssql.dll

note that there is a ; before the line
remove the ; save file and restart xampp

you should have

extension=php_mssql.dll

#2 KoKe

KoKe
  •  
  • 8 posts

Posted 29 June 2011 - 02:43 PM

**Removed by moderator

Please keep the question in 1 topic. no need to spam!

Edited by Pieter, 29 June 2011 - 03:47 PM.
spam removed


#3 Yougurt

Yougurt
  •  
  • 38 posts

Posted 17 September 2013 - 10:34 PM

Another error: 


Warning: mssql_connect() [function.mssql-connect]: message: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. (severity 14) in C:\xampp\htdocs\vote.php on line 74

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: in C:\xampp\htdocs\vote.php on line 74

Warning: mssql_query() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\vote.php on line 75

Warning: mssql_num_rows() expects parameter 1 to be resource, null given in C:\xampp\htdocs\vote.php on line 76

Account not found.

 

 

 

 

 

 

 

My codes at the lines:
 

    $ms_con = mssql_connect($mssql['127.0.0.1'],$mssql['sa'],$mssql['1234']);
	$result1 = mssql_query("SELECT * FROM account.dbo.user_profile WHERE user_id = '".$account."'",$ms_con);
	$count1 = mssql_num_rows($result1);

Edited by Yougurt, 17 September 2013 - 10:36 PM.


#4 janvier123

janvier123

    Php Guru

  •  
  • 1,107 posts

Posted 18 September 2013 - 06:49 AM

 

Another error: 


Warning: mssql_connect() [function.mssql-connect]: message: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. (severity 14) in C:\xampp\htdocs\vote.php on line 74

Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: in C:\xampp\htdocs\vote.php on line 74

Warning: mssql_query() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\vote.php on line 75

Warning: mssql_num_rows() expects parameter 1 to be resource, null given in C:\xampp\htdocs\vote.php on line 76

Account not found.

 

 

 

 

 

 

 

My codes at the lines:
 

    $ms_con = mssql_connect('127.0.0.1','sa','1234');
	$result1 = mssql_query("SELECT * FROM account.dbo.user_profile WHERE user_id = '".$account."'",$ms_con);
	$count1 = mssql_num_rows($result1);

 

fixed



#5 Yougurt

Yougurt
  •  
  • 38 posts

Posted 18 September 2013 - 09:04 AM

fixed

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\vote.php on line 81

Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\vote.php on line 82

Warning: mysql_query() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\vote.php on line 83

Warning: mysql_fetch_row() expects parameter 1 to be resource, null given in C:\xampp\htdocs\vote.php on line 84

Warning: mysql_num_rows() expects parameter 1 to be resource, null given in C:\xampp\htdocs\vote.php on line 85

Warning: mysql_query() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\vote.php on line 88

Warning: mysql_query() expects parameter 2 to be resource, boolean given in C:\xampp\htdocs\vote.php on line 89
Error: Access denied for user 'ODBC'@'localhost' (using password: NO)

This came up now


Edited by Yougurt, 18 September 2013 - 01:52 PM.


#6 janvier123

janvier123

    Php Guru

  •  
  • 1,107 posts

Posted 23 September 2013 - 08:49 AM

Thats MYSQL not MSSQL



#7 Yougurt

Yougurt
  •  
  • 38 posts

Posted 05 October 2013 - 05:21 PM

Send me your skype and we'll discuss it there :)

 

I have no idea what to do and would appreciate some help