what's wrong with this function?
Posted
by Joann
on Stack Overflow
See other posts from Stack Overflow
or by Joann
Published on 2010-05-22T08:07:43Z
Indexed on
2010/05/22
8:10 UTC
Read the original article
Hit count: 187
php
function get_ibo_id() {
if($registerquery = $this->conn->query("SELECT ibo_id FROM fasttrack WHERE count <
8 && flag = 1 ")){
$this->increase_count();
while ($row = $registerquery->fetch_assoc()) {
return $row[ibo_id];
}
}
else return "No id";
}
it always enters the if block even if the condition is not satisfied... going crazy
© Stack Overflow or respective owner