No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[code=php]<?php $con=mysql_connect("localhost","root",""); if(!$con) { die('Could not connect:'.mysql_error()); } mysql_select_db(customer1,$con) $sql1="INSERT INTO details(companyname,companyadd,comstate,telephone,fax,email,fname,lname,nic,mobile,username,password);VALUES('$_POST[coname]','$_POST[coadd]','$_POST[cost]','$_POST[tel]','$_POST[fax]','$_POST[mail]','$_POST[fname]','$_POST[lname]','$_POST[nic]','$_POST[mob]','$_POST[user]','$_POST[password]')"; if(!mysql_query($sql1,$con)) { die('Error:'.mysql_error()); } echo"1 record added"; mysql_close($con) ?>[/code] |