Another php/sql error I don't understand

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Publisher Bucks
    Confirmed User
    • Oct 2018
    • 1330

    #1

    Tech Another php/sql error I don't understand

    $req2 = mysqli_query($con, 'select id, url, name, description, banner, votes from site where status="ok" order by votes desc limit '.$first_message .','.$last_message);
    while($dnn2 = mysqli_fetch_array($con, $req2))
    Why isnt this displaying the data it is supposed to?

    I've ran and executed the correct query (I think?)
    Extreme Link List - v1.0
  • brassmonkey
    Pay It Forward
    • Sep 2005
    • 77396

    #2
    Originally posted by Publisher Bucks
    Why isnt this displaying the data it is supposed to?

    I've ran and executed the correct query (I think?)
    stackflow man
    https://stackoverflow.com/users/login
    TRUMP 2026 KEKAW!!! - The Laken Riley Act Is Law!
    DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com

    Comment

    • hornyasf
      Confirmed User
      • Jul 2021
      • 185

      #3
      If this is for a live site, don't forget to use prepared statements!

      Comment

      • ZTT
        Confirmed User
        • Apr 2019
        • 659

        #4
        Try putting this at the top of your PHP pages:

        error_reporting(0);
        __________________

        Comment

        Working...