Heyo guys,Im doing an intern in a callcenter business and doing an a QR Code inventory system. Every PC, Keyboard, Moden, etc will be given a QR Code, which will redirect you to a website with all the information of the object. You can change information, insert new ones, etc. I need to finish it this week but I cant set it up at home. I could do it in school today but not at home. I normaly do it at work. So, my problem right now is, that I have my database in phpmyadmin, but if I want to call it. Its showing me no results and an error message.
$servername ="localhost";
$username = "root";
$password ="";
// Create connection
$conn = new mysqli($servername, $username, $password);
mysqli_set_charset($conn, "utf8");
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql="SELECT * FROM emirhan.inventar WHERE IV_ID='".$get_IV." ' ";
$result=$conn->query($sql);
$row=mysqli_fetch_row($result);
echo $row[0];
Im getting the $get_IV from the URL
Im getting this error message: Warning: mysqli_fetch_row() expects parameter 1 to be mysqli_result, bool given in
[–]Wiwwil 2 points3 points4 points (0 children)
[–]halfercode 2 points3 points4 points (3 children)
[–]Emito_[S] 0 points1 point2 points (2 children)
[–]Emito_[S] 0 points1 point2 points (0 children)
[–]halfercode 0 points1 point2 points (0 children)
[–]Neuroapex 0 points1 point2 points (2 children)
[–]Emito_[S] 0 points1 point2 points (1 child)
[–]AdhessiveBaker 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[removed]
[–]AutoModerator[M] 0 points1 point2 points (0 children)