Reply to PHP & MSSQL Express issues (Newbie)

Your name:

Reply:


Posted by Todd Michels on 02/25/07 12:05

Hi All,

I am trying to collect info from a MSSQL DB and I am not even able to
get passed the connection. I don't get any errors I just get a blank
page when I go to the site.

PHP is working, see attached phpinfo(). Any help is appreciated.

Windows XP SP2, IIS 5.1, PHP 5.2.1, MSSQL Server Express Edition




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<?php
$con=mssql_connect("serverName\sqlexpress","username","password");

if ($con)
$conStatus="It connnected";
else
$conStatus "didn't work";

mssql_close($con);
?>

<title>Test PHP MSSQL</title>

</head>

<body>

<?php echo $conStatus; ?>

</body>

</html>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация