Uncategorized

I got my hands on a Mac

March 17, 2010
Uncategorized
mac, macbook pro, new computer

I’ve done work on Macs before and always enjoyed it but I’ve managed to get my hands on a MacBook Pro which I’ll be doing lots of my work with. Having read a couple of iPhone developer books I’m very keen to get stuck into a bit of app development and see what I can come up with. The first evening was pretty much spent installing programs and typing into Google “mac short cut for ……” but after a few days of working on it I can highly recommend it. ...

Drupal 6 num_rows

March 7, 2010
Uncategorized
Database, Drupal, Web Development

I’ve been working on a site powered by Drupal and needed to find the number of rows a database query returned. Simple enough and quite common procedure. But, the Drupal database API no longer offers the db_num_rows() function. I had a quick Google around and the answered seemed to be to run the query twice but the second time using a count query. Two calls to the database when only one is necessary? ...