Thursday 15 May 2014

mysql - Query Not Echoing in PHP -


The following code I am using is used to find the database and resonate the logs corresponding to the search , Although nothing is echoing, nor is showing an error parameter if you do not have any brain, please tell where I can be wrong.

  & lt ;? Php if (isset ($ _gET ['search'])) {$ srch = "Choose from log '' where 'log' '' '.' $ _ GET ['search']. ''; $ Result = mysqli_query ($ globals ["___ mysqli_ston"], $ srch); While ($ line = mysqli_fetch_assoc ($ result)) basecho_secode echo ($ line ['log']); If (! $ Result) {dead ('invalid query:'. Mysqli_error ()); }}? & Gt;    

You forgot in the string like%

  $ Srch = "SELECT * FROM logs 'like' WHERE 'log'% '. $ _GET [' search ']"%' ";    

No comments:

Post a Comment