« first day (3496 days earlier)      last day (621 days later) » 

 
1 hour later…
7:47 AM
-2
Q: Number of row return is not the same as row count OOP PHP

mideveloperI am using MVC to get an array of values and encode it to JSON, I figure the query returns 3 rows but I got just a single row below is my code: protected function viewListItems($query,$array){ try{ $sql = $this->connection()->prepare($query); $sql->execute($ar...

 
 
2 hours later…
 
2 hours later…
 
2 hours later…
2:38 PM
-1
Q: Why in loop if the word return does not return anything?

Daryoush Jamshididef arithmetic(a,b): if a == 0 : return b else: arithmetic(a-1,b+a) print(arithmetic(4,0))

 
 
9 hours later…

« first day (3496 days earlier)      last day (621 days later) »