Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi All,
Installed
PHP Version 5.2.3
Apache 2.0
Mysql 5.0
O/S Windows 2000 Professional
IE 6
Only outputs Hello, When I've executed the following code.Code: Select all
<?php
echo 'Hello';
$data_base = 'testdb';
$conn = @mysql_connect('localhost','root','') or die ('Error');
mysql_select_db("$data_base");
if (!$conn) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
php?>Not even displays the connection error or success message.
Do I need to configure any thing in the php.ini file ?
php.ini file is located at C:/Program files/php/
Do I need to relocate the ini file to some where else?
Thanks!
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]