wat doe ik verkeerd iemand een idee
Code (php)
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
include("_include-connection.php");
if(isset($_SESSION['loginUserId']) AND is_numeric($_SESSION['loginUserId']) AND check_login() AND !isset($custom_date) AND !isset($custom_data) AND (!isset($nomysql) OR !$nomysql)) {
$extendedUserFields = "";
if(isset($additionalRequiredUserFields) AND is_array($additionalRequiredUserFields)) {
foreach($additionalRequiredUserFields as $value) {
$extendedUserFields .= ", " . $value;
}
}
$query = "SELECT id, login, account, UNIX_TIMESTAMP(signup) AS signup, UNIX_TIMESTAMP(online) AS online, IP, " .
" WHERE id=".$_SESSION['loginUserId']." AND ua.uid=account" . " LIMIT 1";
$query = mysqli_query($con, "object", null, 'User');
}
?>
include("_include-connection.php");
if(isset($_SESSION['loginUserId']) AND is_numeric($_SESSION['loginUserId']) AND check_login() AND !isset($custom_date) AND !isset($custom_data) AND (!isset($nomysql) OR !$nomysql)) {
$extendedUserFields = "";
if(isset($additionalRequiredUserFields) AND is_array($additionalRequiredUserFields)) {
foreach($additionalRequiredUserFields as $value) {
$extendedUserFields .= ", " . $value;
}
}
$query = "SELECT id, login, account, UNIX_TIMESTAMP(signup) AS signup, UNIX_TIMESTAMP(online) AS online, IP, " .
" WHERE id=".$_SESSION['loginUserId']." AND ua.uid=account" . " LIMIT 1";
$query = mysqli_query($con, "object", null, 'User');
}
?>
Gewijzigd op 11/02/2021 17:12:08 door Yannick decock
Kan je wat meer vertellen? Enkel een code dumpen is niet de bedoeling.
Warning: mysqli_query() expects at most 3 parameters, 4 given in config.php on line 14
$query = mysqli_query($con, "object", null, 'User');
Gewijzigd op 11/02/2021 17:15:06 door yannick decock
Waarschuwing: mysqli_query() verwacht maximaal 3 parameters, 4 gegeven in config.php op regel 14
Verder klopt er weinig van.
Je doet niks met met de SQL-opdracht (hoewel $sql beter zou zijn geweest).
Hoe kom je op Object, null en user?
Gewijzigd op 11/02/2021 17:20:23 door - Ariën -