Error in MySQL and PHP statement -
i have following code, seems break page @ $result = $mysqli->query($query);
statement. doing wrong?
$ids = join(',',$newarray); $query = "select name, image logos id in ($ids)"; $result = $mysqli->query($query); while ($row = $result->fetch_assoc()) { $imagelink = $row['logoimagelink']; echo "<li><img src=\"$imagelink\"/></li>"; }
it answer question if provided error. being answered last question:
you need define $mysqli
, so:
$mysqli = new mysqli("localhost", "user", "password", "database");
Comments
Post a Comment