?
Solved

PHP 5 MSSQL 2005 Connection

Posted on 2007-10-04
6
Medium Priority
?
1,254 Views
Last Modified: 2013-12-13
I have install php 5.2.4 on my machine and apache 2.2.4 and it is working perfect exept that i can conect to the bd. i create a ODBCto cheeck if it was a problem with the configuration of my db but with the ODBC works pewrfect. but i dont want to use ODBC how can i set up the conection?

And one more quiestion why if i write this <? ......?>  it display the php on the screen and if i do this <?php ......?>  execute the code?

0
Comment
Question by:dentrita
  • 4
  • 2
6 Comments
 
LVL 1

Expert Comment

by:gowni
ID: 20020546
Hi,

What database you are using? For the second part, for <? ?> to work you have to enable short_tags in php.ini file
0
 
LVL 1

Author Comment

by:dentrita
ID: 20021419
i am usung MSSQL 2005 db
0
 
LVL 1

Expert Comment

by:gowni
ID: 20021866
Hi,
Can you paste your code here so that we can take a look
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Author Comment

by:dentrita
ID: 20022226
the php configuration file you can see it on this link http://felipeholguin.no-ip.info/phpinfo.php
is a old web site that i had and i want to chance the db to mssql2005 the code was working perfect with mssql2000
here is the line where i connect to the db
define ('DB_USER','XXXX');
define ('DB_PASSWORD','XXXXX');
define ('DB_HOST','XXXXXX');
define ('DB_NAME','XXXXX');

$dbconn = mssql_connect(DB_HOST,DB_USER,DB_PASSWORD) or die("Could not connect...");


thanks
0
 
LVL 1

Author Comment

by:dentrita
ID: 20034727
No clue anyone?
please help
0
 
LVL 1

Accepted Solution

by:
dentrita earned 0 total points
ID: 20038044
i already found the problem how can i get my points back

the answer is

ntwdblib.dll Version - On some systems the ntwdblib.dll version is too old to work correctly with PHP. If your version does not end in 80.194.0 it's probably too old. You can download the 80.194 version here.

http://www.userscape.com/helpdesk/index.php?pg=kb.page&id=13
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month16 days, 2 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question