$DBHOST = "localhost"; $DBUSER = "root"; $DBPWD = ""; $DBNAME = "ajax_search"; $conn = new mysqli($DBHOST, $DBUSER, $DBPWD, $DBNAME); //$DBNAME is the only value that should differ each time