Jump to content

Lopez

New Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Lopez

  1. Hello guys. Thanks a lot for any help with this.

    My problem is that I'm trying to use MAX to get the last item in the portafolio table. This is my query:

    $result = $db->prepare( "SELECT * FROM portafolio INNER JOIN imagenes ON imagenes.work = portafolio.idp WHERE work = ? ORDER BY iid DESC);
    $result->execute(array($_GET['work']));

    The main idea is not use $_GET['work'], because i want to display the last work (with their respective images) in my portafolio in the main page, so im not passing any variable by url.

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.