Mysql like function in mysql and php
<?php
$sql="select * from 'your table name ' where name LIKE '%saifi%'";
?>
or
<?php
$sql="select * from 'your table name ' where name LIKE '_saifi%'";
?>
or
<?php
$sql="select * from 'your table name ' where name LIKE 'sai_'";
?>or
<?php
$sql="select * from 'your table name ' where name LIKE '_fi'";
?>
<?php
$sql="select * from 'your table name ' where name LIKE '%saifi%'";
?>
or
<?php
$sql="select * from 'your table name ' where name LIKE '_saifi%'";
?>
or
<?php
$sql="select * from 'your table name ' where name LIKE 'sai_'";
?>or
<?php
$sql="select * from 'your table name ' where name LIKE '_fi'";
?>
Comments
Post a Comment