it is giving below error Fatal error: Call to undefined function mysql_connect() in C:\Inetpub\wwwroot\tarun\index1.php on line 17
How many php extensions you are using. When I downloaded php and installed from wizard it had numerous extensions uncommented by default. First tell me did you installed php from wizard and or extracted php folder form zip.
check your php.ini (located in your php install directory) search for if you see semicolon at the beginning of line delete it and restart apache
^ or if you don't have access to PHP.ini: <?php php_info( ); ?> PHP: Then do a search for 'MySQL' on thate page.
<?php $dphost = 'localhost'; $dpuser = 'root'; $dppass = 'password'; $conndp = mysql_connect($dphost, $dpuser, $dppass) or die ('Error connecting to mysql'); $dpname = 'FunnyBird'; mysql_select_dp($dpname); ?>
you went on a 'p' frenzy <?php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = 'password'; $conndb = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); $dbname = 'FunnyBird'; mysql_select_db($dbname); ?> PHP: