
Untitled
By: a guest on
Jul 4th, 2012 | syntax:
None | size: 0.52 KB | hits: 14 | expires: Never
i want to make a type of code that will show if you miss a payment ie
if($payed === "1")
{
$db->query("UPDATE leanders SET `issue`=`issue` +1 WHERE id='$id'"0);
}else{
$db->query("UPDATE leanders SET `issue`=`issue` -1 WHERE id='$id'"0);
}
then find if the user is allowed to be refinanced?
$sql = "SELECT * FROM lenders WHERE issue='5'";
$results=$db->query($sql);
while($row=$results->fetch_array())
{
echo "<td>".$row["name"]."</td>";
echo "<td>".$row["phone"]."</td>";
echo "<tr></tr>";
}
would this work??