Jump to Content
Jump to Navigation

Archive for the “PHP”

I’m sure this is bad practice somehow

Wednesday, September 30th, 2009

If you don’t know PHP, you can safely ignore this.
I had been using the following code to get rows out of a database (it’s with Oracle, but I’m sure mysql_fetch_assoc() would work just as well for these):
while ($row = oci_fetch_array($result)) {
$whatever[] = $row[];
}
But then it hit me: if I’m already fetching [...]