File manager - Edit - /home/autoph/public_html/portal/autocomplete.php
Back
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>jQuery UI Autocomplete - Default functionality</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <link rel="stylesheet" href="/resources/demos/style.css"> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script type="text/javascript" charset="utf-8"> $( function() { var userName = <?php $d = mysql_query( "SELECT * FROM `tb_brands`" ) or die( mysql_error() ); $usernames = array(); while( $r = mysql_fetch_assoc($d) ) { $usernames[] = $r['brand_name']."---".$r['brand_name']; } echo json_encode( $usernames ); ?>; $( "#tags" ).autocomplete({ source: userName }); } ); </script> </head> <body> <form action ="" method='GET'> <div class="ui-widget"> <label for="tags">Tags: </label> <input type='text' name='searchItem' id="tags"> </div> <input type='submit' name='ok'> </form> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings