[PHP-WIN] n00b cannot start MySQL

2007-07-27 Thread Abhisek Dutta
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

Re: [PHP-WIN] n00b cannot start MySQL

2007-07-28 Thread Abhisek Dutta
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

Re: [PHP-WIN] Arrays past to functions

2007-07-31 Thread Abhisek Dutta
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"; } ?>

Re: [PHP-WIN] n00b cannot start MySQL

2007-07-31 Thread Abhisek Dutta
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

Re: [PHP-WIN] PHP, MYSQL and Apache

2007-08-07 Thread Abhisek Dutta
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

[PHP-WIN] Wamp/XAMPP and phpmyadmin

2007-08-07 Thread Abhisek Dutta
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