conec.php problem connecting to my database.
this is the error.
http://i57.tinypic.com/34ytg8h.jpg
and this is the php code by sir yagamy.
http://i57.tinypic.com/wch20j.png
I already checked also my username and password by logging in to my database.
http://i60.tinypic.com/2w32gkx.png
http://i60.tinypic.com/s4rr5f.png
I hope someone can help my problem. thanks in advance.
Re: conec.php problem connecting to my database.
this web have 3 conec.php, in the screenshot the error say:
C:\xampp\htdocs\registro\ajax\conec.php
The 3 conec files are in:
- C:\xampp\htdocs\conec.php
- C:\xampp\htdocs\registro\conec.php
- C:\xampp\htdocs\registro\ajax\conec.php
You need edit this 3 files and allow mssql in:
C:\xampp\php\php.ini
find
Quote:
;extension=php_mssql.dll
and replace by
Quote:
extension=php_mssql.dll
Re: conec.php problem connecting to my database.
Quote:
Originally Posted by
John
this web have 3 conec.php, in the screenshot the error say:
C:\xampp\htdocs\registro\ajax\conec.php
The 3 conec files are in:
- C:\xampp\htdocs\conec.php
- C:\xampp\htdocs\registro\conec.php
- C:\xampp\htdocs\registro\ajax\conec.php
You need edit this 3 files and allow mssql in:
C:\xampp\php\php.ini
find
and replace by
after I replace this is the error sir.. and still my php file cant connect to my database. any solution sir? :(
http://i61.tinypic.com/29yqfic.png
1 Attachment(s)
Re: conec.php problem connecting to my database.
Re: conec.php problem connecting to my database.
Quote:
Originally Posted by
John
test with this patch
where would i put the ntwdblib.dll sir?
Re: conec.php problem connecting to my database.
Paste php folder (of the patch) into xampp folder.
Re: conec.php problem connecting to my database.
i am following this... this patched resolved Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server but now i have a blank browser lol. still configuring out this one. its been years since i stop in this project but now trying to continue again and starting from scratch ;)
edited:
still Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server persist lol...
SOLVED!
C:\xampp\php\php.ini
find
Quote:
;extension=php_pdo_mssql.dll
replace by
Quote:
extension=php_pdo_mssql.dll
Re: conec.php problem connecting to my database.
Quote:
Originally Posted by
John
this web have 3 conec.php, in the screenshot the error say:
C:\xampp\htdocs\registro\ajax\conec.php
The 3 conec files are in:
- C:\xampp\htdocs\conec.php
- C:\xampp\htdocs\registro\conec.php
- C:\xampp\htdocs\registro\ajax\conec.php
You need edit this 3 files and allow mssql in:
C:\xampp\php\php.ini
find
and replace by
Esto es lo correcto ;)