MYSQL PHP - get float LIKE $float

前端 未结 3 1475
太阳男子
太阳男子 2021-01-28 02:47

I want to get rows with floats like my $float.

I used this code:

$float = $_GET[\'float\'];

$requst = mysql_fetch_array(mysql_query(\"SELEC         


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-28 03:38

    Try This

    $requst = mysql_query("SELECT * FROM floats WHERE float LIKE'$float.%%%%%%%'");
    while ($r = mysql_fetch_array($request)) {
    
        echo $r['float'];
    
    }
    

提交回复
热议问题