w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
populate select dropdown menu with category names from mysql database

As per OP's wish to close the question:

You need to pass your DB connection to your query.

Either by using:

$r = $dbc->query($q);


$r = mysqli_query($dbc,$q);
  • The choice is yours.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.