Jump to content

devarmagan

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

devarmagan's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. yes now connecting but again iam getting an error this is the code iam  runing [code]<?php $con = mysql_connect('localhost','root','admin'); if (!$con)   {   die('Could not connect: ' . mysql_error());   }mysql_select_db("my_db", $con);$sql="INSERT INTO person (FirstName, LastName, Age) VALUES ('$_POST[firstname]','$_POST[lastname]','$_POST[age]')";if (!mysql_query($sql,$con))   {   die('Error: ' . mysql_error());   } echo "1 record added";mysql_close($con) ?>[/code] "error msg" Error: No database selected
  2. iam not clear sir from where and what i have to cut and past. please help me
  3. ok view my local pc php configurations here http://www.ggeye.com/phpinfo.htm
  4. did i have to change the path of php.ini if then where can i change it?
  5. the configuration php.ini path is  C:\PHP\php.ini   
  6. i refer that thred still iam having that problem
  7. iam inserting a new record in php and iam gertting a error while connecting to mysql  the error msg is "Fatal error: Call to undefined function mysql_connect() in C:\webs\test\insert.php on line 2" while iam configuring the the mysql i9 have given username and password admin and admin is that the way please help me [code]<?php $con = mysql_connect('localhost','admin','admin'); if (!$con)   {   die('Could not connect: ' . mysql_error());   }mysql_select_db("my_db", $con);$sql="INSERT INTO person (FirstName, LastName, Age) VALUES ('$_POST[firstname]','$_POST[lastname]','$_POST[age]')";if (!mysql_query($sql,$con))   {   die('Error: ' . mysql_error());   } echo "1 record added";mysql_close($con) ?>[/code]
  8. the apache is working fine now  thank you and i have test the php like http://localhost/Examples/hello.php and create the files in C:\Examples\hello.php  its not working error msg  "The page cannot be found"
  9. i have to download this vesion right  "Win32 Binary (MSI Installer): apache_2.0.59-win32-x86-no_ssl.msi [PGP] [MD5]"
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.