Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.52 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. i want to make a type of code that will show if you miss a payment ie
  2.  
  3. if($payed === "1")
  4. {
  5. $db->query("UPDATE leanders SET `issue`=`issue` +1 WHERE id='$id'"0);
  6. }else{
  7. $db->query("UPDATE leanders SET `issue`=`issue` -1 WHERE id='$id'"0);
  8. }
  9.  
  10. then find if the user is allowed to be refinanced?
  11. $sql = "SELECT * FROM lenders WHERE issue='5'";
  12. $results=$db->query($sql);
  13. while($row=$results->fetch_array())
  14. {
  15. echo "<td>".$row["name"]."</td>";
  16. echo "<td>".$row["phone"]."</td>";
  17. echo "<tr></tr>";
  18. }
  19.  
  20. would this work??