I want to make a select in my database to see all the results that are: status = 1

Asked

Viewed 28 times

0

$sql = "SELECT * FROM pagamentos WHERE status = 0";
while($aux = mysql_fetch_row($sql)) {
    echo '<td>'. $aux['nome_cliente'] .'</td>';
}
  • 3

    already changed status to 1 in Where?

  • $sql = "SELECT * FROM payments WHERE status = 1";

  • I got it right, vlw

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.