TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
satan bhagat
NA
2
408
connectivity of xamp server error
Feb 4 2020 3:02 PM
mysqli_query() expects at least 2 parameters, 1 given in C:\xampp\htdocs\satan project\confeb.php on line 8
<?php
include_once
(
'connect1.php'
);
if
(isset(
$_POST
[
'submit'
]))
{
$name
=
$_POST
[
'name'
];
$email
=
$_POST
[
'email'
];
$address
=
$_POST
[
'address'
];
if
(mysqli_query(
"insert into students_record(name,email,address) VALUES('$name','$email','$address')"
))
{
echo
"submitted"
;
}
}
?>
<!DOCTYPE HTML>
<html lang=
"en-US"
>
<head>
<meta charset=
"UTF-8"
>
<title>
[email protected]
| php tutorials </title>
<body>
<form action=
" "
method=
"post"
>
<p> Name:<br /> <input type =
"text"
name=
"name"
/> </p>
<p> email <br /> <input type =
"text"
name=
"email"
/> </p>
<p> address <br /> <input type=
"text"
name=
"address"
/> </p>
<p> <input type=
"submit"
name=
"submit"
value=
"submit"
/> </p>
</form>
</body>
</html>
this is my code and lineno 8 showing mysqli_query at least 2parameter i dont find out exactily
Reply
Answers (
0
)
Unable to Consume Web Api in Xamarin
Can I set up brother wireless printer?