Searching a database

Hi,
Is anyone able to help me with the above code? Any help would be much appreciated! Thanks