How to use Comparison operator with text data ?
This is my table
http://image.ohozaa.com/i/51c/zBed4I.png
And this is my code.
<?PHP
include("connect.php");
$sql = "SELECT * FROM test_db WHERE number >= '3' AND number <= '5' order by id asc";
$result = mysql_query($sql);
$datas=mysql_fetch_array($result);{
$id = stripslashes(str_replace('
', '<br>',($datas['id'])));
}
?>
After test code, I will get result id 1
and 2
How can i do that ?