I have just written my first connection from PHP to mySQL using mySQLi. I noticed that there is no autocompletion for mySQLi objects. For example in this code there is no autocompletion for $result->num_rows
and $result->data_seek($j)
. For php the autocompletion works as expected. What I am doing wrong?
<?php
require_once 'login.php';
$conn = new mysqli($hn,$un,$pw,$db);
if($conn->connect_error){
echo"huhuhuhu";
}
$query = "select * from classics";
$result = $conn->query($query);
if(!$result){
die("result je null");
}
$rows = $result->num_rows; // no autocompletion
for ($j = 0; $j<$rows; $j++){
$result->data_seek($j); // no autocompletion
}