PHP Tutorial: Looping Through & Displaying A MySQL Result Set

Recently I’ve seen a lot of people using while loops to retrieve a single record. You only need to loop through your result set when you expect to get more than one row of data returned. If you use a loop even when you only expect one value back from your query then you’re wasting … Continue reading PHP Tutorial: Looping Through & Displaying A MySQL Result Set