Thread: PHP database
View Single Post
  #2 (permalink)  
Old 07-15-2005, 08:56 AM
jitender's Avatar
jitender jitender is offline
Site Admin
 
Join Date: Jun 2004
Posts: 1,200
jitender has a spectacular aura aboutjitender has a spectacular aura aboutjitender has a spectacular aura about
iTrader: (0)
Default

hi nikhil,


open a pop with form in php file and get the data in php,

use connection file in used php file

PHP Code:
include("connectionfile.php"); 


if you get the error in connection please check the connectin first

PHP Code:
$conn mysql_connect('mysql_host''mysql_user''mysql_password')
   or die(
'Could not connect: ' mysql_error());
echo 
'Connected successfully';
mysql_select_db('my_database') or die('Could not select database'); 


after complete the function close it

Regards
Jitender
__________________
Free Webmaster Tools - Free SEO Tools
phpLDHacks - Add your template or Hack and earn money
Text Link Ads - Buy & Sell text link ads
Reply With Quote