Posted by tank Fri 23rd Mar 2007 22:22 - Syntax is PHP - 29 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers
PHP parser reported no syntax errors in this post!
Description:
I have got a page with a text field called email and a search button and i im
trying to create a search feature with the LIKE syntax in mysql and then just to
echo it on the same page.Im getting nothing though when i press on search. :)
thanks

  1.  
  2. include("open.php");
  3.  
  4. $row = mysql_query("select * FROM users WHERE email LIKE '%$email%'") or die("MySQL Error: " . mysql_error());
  5.  
  6.  
  7. echo $row['email'] . "
    "
    ;
  8.  
  9. mysql_close($dbh);
  10. ?>

PermaLink to this entry https://pastebin.co.uk/12152
Posted by tank Fri 23rd Mar 2007 22:22 - Syntax is PHP - 29 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers

 

Comments: 0