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
Jeff Literal
NA
16
717
Warning: mysqli_query() expects at least 2 parameters, 1 is given in..
Aug 3 2020 9:26 AM
I can't figure out on where I get the error on lines 05 and 06. Please help.
<?php
$config=mysqli_connect(
"localhost"
,
"root"
,
""
);
mysqli_select_db($config,
"dk"
);
function
register($id,$uname,$pass){
$q=
"insert into users values ('$id','$uname','$pass')"
;
mysqli_query(
"alter table users auto_increment = 1"
);
if
(mysqli_query($q)){
mkdir(
"$dir"
, 0700);
echo "<script language=
'javascript'
>
alert(
'User Registered'
);
window.location =
'administrator.php'
;
</script>
";
}
else
{
echo "<script language=
'javascript'
>
alert(
'Registration Failed Or User Already Registered'
);
window.location =
'administrator.php'
;
</script>
";
}
}
?>
Reply
Answers (
6
)
Creating Master Details Form Like Sales Invoice
cannot insert .pdf file to mysql db