India's No. #1 Programmer's Forum
Ask your Question
97
1
Reply
Hello Connection you can use this code, i hop your problem will be solved
$host = "localhost"; $username = "root"; $password = ""; $db = "test"; $con = mysqli_connect($host,$username,$password ,$db); if(isset($_POST['insert'])) { $sql = "insert into student set column_name='value'"; $query = mysqli_query($con,$sql); if($query) { echo "data insert success"; }else{ echo "some problem"; } }
Drop your Suggestion for this question and share this link on Facebook, Twitter
Session has been expired, please login again!