I'm still a beginner I suppose....
This is my mysql statement
$sql = "SELECT * FROM reserve WHERE $_POST[searchcolum] = '$_POST[searchvalue]' ORDER BY resnum";
Currently it will only get an EXACT match - i.e. a phone number listed in the database as (123) 456-7890 will not be found if searched by looking for 123 456-7890, or if looking just for 7890 e.t.c
I've tried changing
WHERE $_POST[searchcolum] = '$_POST[searchvalue]'
to
WHERE $_POST[searchcolum] LIKE '$_POST[searchvalue]'
but that's not a help. What is ?
Thanks
This is my mysql statement
$sql = "SELECT * FROM reserve WHERE $_POST[searchcolum] = '$_POST[searchvalue]' ORDER BY resnum";
Currently it will only get an EXACT match - i.e. a phone number listed in the database as (123) 456-7890 will not be found if searched by looking for 123 456-7890, or if looking just for 7890 e.t.c
I've tried changing
WHERE $_POST[searchcolum] = '$_POST[searchvalue]'
to
WHERE $_POST[searchcolum] LIKE '$_POST[searchvalue]'
but that's not a help. What is ?
Thanks