Jump to content

[SOLVED] PHP MYSQL LIKE


anser316

Recommended Posts

The user types something in a textbox.

e.g. s3

echo "<td><input type=text name=dname></td>";
$dname=$_POST(dname);

 

This is the end of MYSQL statement

AND dname LIKE '%$dname%'.

 

If i wanted to get 'sample3', s3 will not work, because the letters have to be together, 'sam' would work.

how can i get 'sample3' from typing in 's3'

Link to comment
https://forums.phpfreaks.com/topic/101646-solved-php-mysql-like/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.