linein designs

Archive for the ‘php’ Category

Quite a few times during projects I only want to find a single value from the database. But rather than setting up WHILE loop, I’ve been using a quick function that does two things perfectly. Here’s the function: // returns single result function mysql_one_data($query) { $one=mysql_query($query); $r=mysql_fetch_row($one); return($r[0]); } // returns single array function mysql_one_array($query) [...]

29 Jan, 2007

USA State Array for HTML Select

Posted by: john In: php|programing

After coding for a while things no longer become “fun” to do over and over. One of those things for me is forms and particularly for this article a state drop down. Below is an array of all the current states along with a quick example of how to use it.

05 Jan, 2007

Convert ISBN10 to ISBN13 with PHP

Posted by: john In: php|programing

Since at the start of 2007 all books will no longer be using the ISBN10, we needed a way to convert all those ISBN10 numbers to the new ISBN13 (or EAN).




Please Support Our Friends

Banner
FreshBooks

About

My name is John Veldboom and have been in design and web programing for just over 8 years now. Started off as a hobby in high school but it has developed into a full time job now. I always tell people that if I wasn't doing this at work each day, I would be at home doing it for free. I love it!

Please visit the contact page to drop me a message.