search

Home  >  Q&A  >  body text

Pagination query problem

$sql="select * from test limit" .($page-1)*5.",5";


always displays this sentence error Parse error: syntax error, unexpected '",5"' (T_CONSTANT_ENCAPSED_STRING) I don’t understand what’s wrong

不吵不闹不吵不闹2752 days ago812

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-08-19 11:32:31

    Oh oh

    reply
    0
  • 不吵不闹

    不吵不闹2017-08-19 10:54:57

    $sql = "SELECT * FROM `test` LIMIT ".(($page-1)*5).",5"; Solved``

    reply
    0
  • Cancelreply