Warning: mysqli_query() expects at least 2 parameters, 1 given in /srv/disk4/2180192/www/[login to view URL] on line 6 Invalid Entry.

Completado Publicado hace 7 años Pagado a la entrega
Completado Pagado a la entrega

Can someone explain this error message and tell me what needs to be done to fix it? Please no up-selling after bid acceptance.

*****Below is the error message I am trying to resolve**********

Warning: mysqli_query() expects at least 2 parameters, 1 given in /srv/disk4/2180192/www/[login to view URL] on line 6

Invalid Entry. Please leave this site if you are an unauthorized user.

*****Below is the code for a file called [login to view URL]*******

<?SESSION_START();

include('[login to view URL]');

$_t01=addslashes($_POST['tea_id']);

$query="SELECT teacher_table.tlogin_pass, teacher_table.teacher_id, teacher_table.teacher_gender, teacher_table.teacher_last FROM teacher_table WHERE $_t01=tlogin_pass";

$result=mysqli_query($query); //THIS IS LINE 6. THAT CAUSE ERROR

if(!$result){

echo "<CENTER>Invalid Entry. Please leave this site if you are an unauthorized user.</CENTER>";

echo $_POST[tea_id];

if($_POST[tea_id]=='abc'){echo "right";}

exit;

}

while($record=mysql_fetch_row($result)) {

for($i=0;$i<count($record);$i++) {

if($i==0){$passcd=$record[$i];echo $passcd;}

else if($i==1){$t_id=$record[$i];echo $t_id;}

else if($i==2){$t_gen=$record[$i];echo $t_gen;}

else if($i==3){$t_last=$record[$i];echo $t_last;}

}

}

$greet = "<CENTER>Welcome, $t_gen $t_last! If know one told you this today, know that you are amazing and appreciated.</CENTER><BR>";

MySQL PHP Arquitectura de software

Nº del proyecto: #11327139

Sobre el proyecto

9 propuestas Proyecto remoto Activo hace 7 años

Adjudicado a:

$25 USD en 1 día
(1 comentario)
0.8

9 freelancers están ofertando un promedio de $20 por este trabajo

searchtechnow

Hello, READY TO SOLVE THIS PROBLEM__ Look forward for your response. Regards

$19 USD en 1 día
(379 comentarios)
8.3
ptykamikaze

Hello I already have the answer for your problem... We can talk about this and how to fix it. You wont be disappointed.

$10 USD en 0 días
(65 comentarios)
6.4
bhagwansahane89

just a small change...msg me now

$10 USD en 0 días
(40 comentarios)
5.4
freelancersach

Hello There, I can help you with this i have 4 years experience in building and developing php / magento/photoshops /wordpress / HTML / CSS and bespoke websites. I am currently available to begin work on this right Más

$20 USD en 1 día
(30 comentarios)
4.9
irfanmochamad26

Hey, Its because mysqli_query must have 2 parameter $connection = mysqli_connect('localhost','root','password'); mysqli_query($connection,$yourquery);

$25 USD en 1 día
(0 comentarios)
0.0
lucassmuller

Hello, I can help you.

$25 USD en 1 día
(0 comentarios)
0.0