i'm sure this must be easy but i'm newby in php so I better call for help, this is the case...
i'm trying to show all the rows of a table based on user variable previosly input by an user, for instance if a get a "smith" in the variable i'd must get all the rows that contains de word "smith" in the NAME field from the USERS table, by the way i'm workin with mysql. Here the script i'm using and from which I get nothing
$result = mysql_query("SELECT * FROM user WHERE name LIKE '% $TEXTO %'",$db);
any help will be appreciated.