I am an extreme n00b here in PHP. just started learning PHP. Can't start
MySQL. The command-prompt says:
/Can't connect to MySQL server on 'localhost./
'telnet localhost 10061' gives:
/Connecting to localhost...Could not open connection to the host, on
port 10061: Connect failed./
But 'services
mysqld-nt.exe is running.
'netstat -an' gives:
/ Proto Local Address Foreign AddressState
TCP0.0.0.0:80 0.0.0.0:0 LISTENING
TCP0.0.0.0:1350.0.0.0:0 LISTENING
TCP0.0.0.0:4450.0.0.0:0 LISTEN
Here's what i made:
5,'WA'=>7,'OR'=>8);
$states=array('CA','WA','OR');
function calctax($amount, $st)
{
global $taxrate;
global $states;
$tax=$amount*$taxrate[$st];
return $tax/100;
}
$amnt=200;
foreach($states as $st)
{
print "Tax in $st for amount $amnt is ".calctax($amnt, $st);
print "\n";
}
?>
elnet to a host named 3306 on port 23.
Thanks,
James
On Sat, 2007-07-28 at 13:57 +0530, Abhisek Dutta wrote:
mysqld-nt.exe is running.
'netstat -an' gives:
/
nowhere is 10061.
'telnet 3306' gives:
/Connecting To 3306...Could not open connection to the host
KM,
Check this out:
http://forums.mysql.com/read.php?52,98383,98383
It may help you.
Regards
Abhisek
KM wrote:
I am attempting to use the following together….
MYSQL 5.0
Apache 2.2.4
PHP 5.2.3
PHP info I can get. I get the following statement whenever trying to get to
mysql
I recently came across wamp and XAMPP and was tempted to use them. They
seemed really easy to use and the installation is simple and easy. What
really amazed me is phpmyadmin. But i am yet to start with phpmyadmin. I
am still learning php. If i start using phpmyadmin i'd probably never
learn to