[wd_asp elements=’search’ ratio=’100%’ id=1]

MySQL result as first in PHP Select Dropdown

14th November 2020

MySql

mysql codehaven category

This will show your result from saved data as the first in a dropdown of other results.
On its first loop it will add something in the beginning, then add the rest.

$sql = "SELECT * FROM clientskeywords WHERE myclientid=$clientid";
if(!$result = $mysqli->query($sql)){
die('There was an error running the query [' . $mysqli->error . ']');
}