function Search($search_term) { $user = '***'; $pass = '***'; $dbname = '***'; $search_term = mysql_real_escape_string($search_term); $connection = mysql_connect('localhost',$user,$pass); mysql_select_db($dbname, $connection); $sql = "SELECT Note_ID FROM Notes WHERE Keywords LIKE '%$keywords%'" $query = mysql_query($sql, $connection); } Code (markup): So I am kinda new to MySQL so I don't know it that well, how will the results of this search be displayed? Thank you so much if you help
Firstly, I think you've got a typo in here - you're selecting using a variable called keywords which should probably be search_term. To answer your question - it won't be displayed anywhere. all you've done is get data from the database. You'll need to build a web page (I presume you want to show the data on a web page of some kind) to show the data. There are lots of online PHP tutorials that can show you how to do this.