Jump to content

DisplayError

New Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by DisplayError

  1. Example Code:
    $sql=$baglan->prepare("SELECT * FROM img where id='$getx') and if (FirstImage==1 echo FirstImage=1 ; else FirstImage==0 echo FirstImage=0 ) "); // AS ETC.
    $sql->execute();    
    $rs = $sql->fetch();

    if FirstImage=1 is absent, continue with FirstImage=0

    Thanks for your idea and effort.

  2. I want to list the previous (minus) 10 records.
    classic asp example:  <% do while not rs.eof and i< 7 %>
    how to do with php pdo?

    My code is this:
    <?php
    $sqlq=$connectx->prepare("SELECT * FROM lovetree ");
    $sqlq->execute();
    while($rs = $sqlq->fetch()) {

    echo $rs['tree'];

    }
    ?>

    Thanks...

×
×
  • 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.