mysqli - Error at mysqli_query -
i have following code:
$sql_query = "insert table students('aarthi','abinesh','anand','aprna','babyshalini','bharathi','dinesh','dhivya','gayathri','gnanaprakash','gokila','gowthem','ibrahim','inbavalli','joemoantom','karthikeyan','kavya','kiruthika','madhumitha','mouliya','nandhini','nithya','prasanth','praveenkumar','priyanga','rajashri','rajkumar','rangashree','reshma','rohan','roja','sangavi','sinthuja','sivasanker_m','sivasanker_v','sowdeshwaran','sowmiya','subash','tamilvalavan','vaishnavi','vasanthakumar','aarchana','dhayalakumaran_sabeesan','premkumar') values ('$m1','$m2','$m3','$m4','$m5','$m6','$m7','$m8','$m9','$m10','$m11','$m12','$m13','$m14','$m15','$m16','$m17','$m18','$m19','$m20','$m21','$m22','$m23','$m24','$m25','$m26','$m27','$m28','$m29','$m30','$m31','$m32','$m33','$m34','$m35','$m36','$m37','$m38','$m39','$m40','$m41','$m42','$m43','$m44')"; mysqli_query($db_select,$sql_query);
it shows following error:
warning: mysqli_query() expects parameter 1 mysqli, boolean given in c:\program files\easyphp-devserver-17\eds-www\mark\upload.php on line 51
the problem $db_select
should post see can see mysqli
doc see more: http://php.net/manual/en/mysqli.query.php
look @ $link
in below example.
<?php $link = mysqli_connect("localhost", "my_user", "my_password", "world"); /* check connection */ if (mysqli_connect_errno()) { printf("connect failed: %s\n", mysqli_connect_error()); exit(); } /* create table doesn't return resultset */ if (mysqli_query($link, "create temporary table mycity city") === true) { printf("table mycity created.\n"); }
Comments
Post a Comment